Reputation: 1
Is that even possible? I want to jump to a label when a particular hotspot on an imagemap is clicked only if pt = 1
pt is defined in the script with a default, I assume that's the best/only way to define a number.
screen plane_seat():
imagemap:
ground "plane.png"
hotspot(165, 800, 155, 221)
if pt == 1:
jump pbathroom_event
else pass
But the error I get is:
u'jump' is not a keyword argument or valid child for the imagemap statement.
Upvotes: 0
Views: 239
Reputation: 1
It also works if you put hotspot inside IF check
screen plane_seat(): imagemap: ground "plane.png" if pt == 1: hotspot(165, 800, 155, 221) jump pbathroom_event ... more code
Upvotes: 0
Reputation: 1
This worked perfectly if anyone's curious.
hotspot(165, 800, 155, 221) clicked If(pt == 1, Return("pbathroom_event"))
Upvotes: 0