Hello again, I'm very sorry for so many questions, I'm trying to add in the feature for having an alternate main menu background image but I'm having trouble with my code and I'm not sure what it is that I've done to upset it. I was reading some similar questions and examples but mine isnt playing as intended.
This is what I'm currently trying, this is the code in the script:
Code: Select all
if air:
ch"How come you chose the blue lantern anyway?"
$ persistent.played = True
jump end
if fire:
ch"How come you chose the orange lantern anyway?"
$ persistent.played = False
jump end Code: Select all
screen main_menu:
# This ensures that any other menu screen is replaced.
tag menu
if persistent.played:
use wonderful_menu
else:
use main_menu_defaultCode: Select all
screen main_menu_default:
tag menu
#stuff in-between clipped out#
image main_menu:
"gui/game_menu2.png"
pause 0.15
"gui/game_menu.png"
pause 0.15
"gui/game_menu3.png"
pause 0.15
repeatCode: Select all
screen wonderful_menu:
# This ensures that any other menu screen is replaced.
tag menu
#stuff in-between clipped out#
image main_menu:
"gui/wonderful_menu.png"
any help is loved <3