I have an Extras page, which I want to place a message first and then call a screen. Within the screen there are buttons. The buttons will call on a label.
So far it's working, until I click on a button to call the label. It runs up with this error:
While running game code:
File "game/screens.rpy", line 234, in script
call screen Extras
File "renpy/common/000statements.rpy", line 457, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/common/00action_menu.rpy", line 128, in __call__
renpy.jump_out_of_context(self.label)
JumpOutException: World1
My code is such:
Code: Select all
label Extras_Screen:
$ show_quick_menu = False
scene bg Hallway
with Dissolve(1.0)
window show
"Welcome to the Extra page." with dissolve
"Here you will find extra notes on the story and the characters."
window hide
call screen Extras
return
screen Extras:
# This ensures that any other menu screen is replaced.
tag menu
add "BG/Hallway.png"
imagebutton auto "UI/World_%s.png" action Start(label='World1') hovered Play ("first", "sound/beep1.mp3") xalign 0.5 yalign 0.2 focus_mask True
label World1:
$ show_quick_menu = False
stop music fadeout .5
show blackscreen
with Dissolve (1.0)
$renpy.pause(1.0, hard='True')
window show
"This is the World page." with dissolve
#Etc, rest of stuff goes here
return