Here is the map code.
Code: Select all
screen map:
imagebutton:
idle "backgrounds/transparent.png"
action [Hide ("map")]
imagemap:
ground "backgrounds/mapGround.png"
idle "backgrounds/mapGround.png"
hover "backgrounds/mapHover.png"
alpha False
hotspot (590, 539, 202, 166) action [Hide("map"), Jump("homeroom")]
hotspot (879, 409, 204, 269) action [Hide("map"), Jump("hallwayOne")]
hotspot (588, 343, 207, 186) action [Hide("map"), Jump("englishClassroom")]
and here are the labels
Code: Select all
label homeroom:
scene homeroom
$ location = 'homeroom'
show screen homeroomOptions
call screen overlay
Code: Select all
label hallwayOne:
scene hallwayOne
$ location = "hallwayOne"
show screen hallwayOneOptions
call screen overlay
Code: Select all
label englishClassroom:
scene englishClassroom
$ location = 'englishClassroom'
show screen englishClassroomOptions
call screen overlay
Lets say I start in homeroom and try to teleport to hallwayOne.
This is where the first problem arises. On the surface it looks like it works. The background image is the hallwayOne image and the hallwayOneOptions screen is shown and works. The problem is the homeroomOptions screen stays but remains invisible. So I can still click on those imagebuttons even though they shouldn't be there.
Then I use the map to try to teleport back to homeroom. The second problem arises. It seems like it successfully teleports me to homeroom (location variable becomes homeroom) but the background images stays the same (the hallwayOne image so it looks like im still in the hallway) and once again both screens show (homeroomOptions and hallwayOneOptions) with again the homeroomOptions being invisible but clickable.
Does anybody know what is happening?
If I use the map to move to all three places, all three options screens show up. I'm assuming this is because every time I jump, I show a screen but never hide it. Is there a way to hide all screens before the jump in the map? That will fix the screens problem. Then the only problem left would be that the background image (scene) doesn't seem to get updated.