When I navigate back and fourth with this code, it stops working after 3 times.
Also is there a better way to implement this using variables and a condition switch? I'm not sure though.
Do I need to add something somewhere so I can go back to previous screens, or am I doing this the wrong way?
Please help me out ^_^;;.
My problem is that above, also my navigation stops working, but after right clicking to go back it goes back and I can navigate for 3 screens again and it does not work.
Code: Select all
label worldmaptime:
window hide
# MUSIC HERE SCENE
play music "Music/3Sparkling_Ocean_by_Vandit.ogg" loop fadeout 2.0 fadein 1.0
call screen worldmap ## calls the world map...
screen worldnav1():
# (83, 658)
imagebutton idle "Map/mapup.png" hover "Map/mapup.png" xpos 75 ypos 500 action [Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapleft.png" hover "Map/mapleft.png" xpos 25 ypos 550 action [Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapright.png" hover "Map/mapright.png" xpos 125 ypos 550 action [Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapdown.png" hover "Map/mapdown.png" xpos 75 ypos 600 action [ShowMenu('mapc'), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at wnav_eff
screen worldnav2():
imagebutton idle "Map/mapup.png" hover "Map/mapup.png" xpos 75 ypos 500 action [ShowMenu('mapn'), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at wnav_eff
imagebutton idle "Map/mapleft.png" hover "Map/mapleft.png" xpos 25 ypos 550 action [Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapright.png" hover "Map/mapright.png" xpos 125 ypos 550 action [ShowMenu('mape'), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at wnav_eff
imagebutton idle "Map/mapdown.png" hover "Map/mapdown.png" xpos 75 ypos 600 action [ShowMenu('maps'), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at wnav_eff
screen worldnav3():
imagebutton idle "Map/mapup.png" hover "Map/mapup.png" xpos 75 ypos 500 action [ Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapleft.png" hover "Map/mapleft.png" xpos 25 ypos 550 action [ShowMenu('mapc'), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at wnav_eff
imagebutton idle "Map/mapright.png" hover "Map/mapright.png" xpos 125 ypos 550 action [ Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapdown.png" hover "Map/mapdown.png" xpos 75 ypos 600 action [ Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
screen worldnav4():
imagebutton idle "Map/mapup.png" hover "Map/mapup.png" xpos 75 ypos 500 action [ShowMenu('mapc'), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at wnav_eff
imagebutton idle "Map/mapleft.png" hover "Map/mapleft.png" xpos 25 ypos 550 action [Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapright.png" hover "Map/mapright.png" xpos 125 ypos 550 action [ Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
imagebutton idle "Map/mapdown.png" hover "Map/mapdown.png" xpos 75 ypos 600 action [ Play ("sfx2", "SFX/error.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at noff_eff
# at wnav_eff
init -2:
transform noff_eff:
on idle:
linear 0.2 alpha 0.5
on hover:
linear 0.2 alpha 0.5
transform wnav_eff: #use ATL to make hovered arrow blink
on idle:
linear 0.2 alpha .9
on hover:
linear 0.2 alpha 1.5
transform map_eff:
on idle:
linear 1.0 alpha 1.0
linear 1.0 alpha 1.2
repeat
on hover:
linear 0.5 alpha 1.5
## End of worldnav
init -2 python:
e = 0
screen worldmap(): ## WORLD MAP
# use worldnav
# if e == 0:
# use mapn
# use worldnav
use mapn
screen mapn(): ##(325, 221)
add "Map/WMn.png"
use worldnav1
imagebutton idle "Map/house.png" hover "Map/house.png" xpos 294 ypos 168 action [Start(), Play ("sfx2", "SFX/MENU A_Select_by_Virix.ogg")] hovered [ Play ("sfx1", "SFX/MENU_Pick_by_Virix.wav")] at map_eff
screen mapc():
add "Map/WMc.png"
use worldnav2
screen mape():
add "Map/WMe.png"
use worldnav3
screen maps():
add "Map/WMs.png"
use worldnav4