Code: Select all
screen study:
tag mains
if TeachingChosen == 1:
add "teachingButton.png" at x2
else:
pass
imagemap:
ground "Teaching.png"
hotspot (110, 110, 100, 100) hovered Show("Desc1") unhovered Hide("Desc1") action [(SetVariable("InTeaching", "Skill1")),(SetVariable("TeachingChosen", "1"))]
hotspot (110, 280, 100, 100) hovered Show("Desc2") unhovered Hide("Desc2") action [(SetVariable("InTeaching", "Skill2")),(SetVariable("TeachingChosen", "1"))]
hotspot (110, 460, 100, 100) hovered Show("Desc3") unhovered Hide("Desc3") action [(SetVariable("InTeaching", "Skill3")),(SetVariable("TeachingChosen", "1"))]
if TeachingChosen == 1:
hotspot (1050, 100, 100, 100) action Show("teaching_done", transition=fade),Hide("study")
else:
pass
hotspot (1050, 670, 100, 100) action Show("main_screen", transition=dissolve),Hide("study")I checked the variables in developer menu and they are changed by the hotspots, but the image and hotspot are still not showing.
I tried changing the "if" controlling ADD to "showif", which did nothing.
And I'm pretty sure I cannot use "if" inside of imagemaps, but I dunno how else to do it.
