I made an imagemap so upon clicking on each button plays a tune and shows an image. It does as it's supposed to, but it jumps straight from the music start and the image shown to another scene, which is found in a completely different label.
The code for my imagemap menu is something like this:
Code: Select all
$ result = renpy.imagemap("ground.jpg", "hover.png", [
(30, 130, 170, 170, "button_one"),
(30, 180, 170, 220, "button_two"),
(30, 230, 170, 270, "button_three"),
]
Code: Select all
if result == "button_one":
play music "randomtuneone.ogg"
show randomimageone with dissolve
elif result == "button_two":
play music "randomtunetwo.ogg"
show randomimagetwo with dissolve
elif result == "button_three":
play music "randomtunethree.ogg"
show randomimagethree with dissolve
Any comment or idea is welcome, TY!