So my logic tells me something like this should work:
Code: Select all
screen tutorial:
default cur_screen_num = 1
python:
cur_screen = "assets/ui/tut/tips_%s.jpg"%(cur_screen_num)
add cur_screen
imagebutton:
auto "assets/ui/tut/tips_prev_%s.png"
action SetScreenVariable(cur_screen_num, cur_screen_num-=1)
hovered Play("sound", "assets/sfx/menu_hover3.ogg")
xpos 80
ypos 680
imagebutton:
auto "assets/ui/tut/tips_next_%s.png"
action SetScreenVariable(cur_screen_num, cur_screen_num+=1)
hovered Play("sound", "assets/sfx/menu_hover3.ogg")
xpos 1040
ypos 680
imagebutton:
auto "assets/ui/tut/tips_exit_%s.png"
action Return()
hovered Play("sound", "assets/sfx/menu_hover3.ogg")
xpos 1140
ypos 15
Buuuut the SetScreenVariable hates me. It doesn't even work if I change the second value to 1 or "1" for testing, it still gives me an error.
I honestly don't know how to do this and it doesn't seem like a straightforward solution for a beginner like me... help? :')