So it goes:
-Dialog
-imagemap: Choice 1, choice 2
-dialog
-imagemap2: choice 1, choice 2
I have a few problems:
1. Instead of the first dialog window going away when the screen moves to the imagemap, it moves onto the next line of dialog in the script file...
Which leads to another problem, clicking anywhere that isn't a hotspot just keeps advancing dialog rather than just doing nothing.
2. The hotspots do work if clicked on... but when it flicks back to the dialog with its own background the imagemap stays on top and doesn't go.
So how do I stop it from moving onto the next line of dialog automatically and/or via clicking while on the imagemap screen?
And how do I hide an imagemap after a choice from it has been made so it doesn't stick around on the next screen?
This is the code I'm using...
In the script.rpy file:
Code: Select all
label start1:
scene tank
c "Welcome speech"
show screen custom
label start1a:
c "Choice 1. Next."
jump name0
label start1b:
show creation
c "Make another choice."
show screen creation
label start1c:
c "Choice made. Next."
jump name0
label name0:
c "Bla bla bla.
Code: Select all
screen custom:
imagemap:
ground "TTBtempS1a.png"
idle "ground.png"
hover "TTBtempS1b.png"
alpha False
#choice 1
hotspot (581, 254, 381, 143) clicked Jump("start1a")
#choice 2
hotspot (583, 400, 379, 118) clicked Jump("start1b")
screen creation:
imagemap:
ground "TTBtempS2.png"
idle "ground.png"
hover "TTBtempS2a.png"
alpha False
#done
hotspot (583, 400, 379, 118) clicked Jump("start1c")