Page 1 of 1

Unable to Call label with button NameError: global name 'from_current' is not defined

Posted: Thu Dec 14, 2017 1:59 am
by pokestat
Using Call() from a button to call a label will result in the error:

Code: Select all

 NameError: global name 'from_current' is not defined

Test case:

Code: Select all

screen testscreen():
    textbutton "test" action Call("test")

label start():
    "Game starts."
    show screen testscreen()
    "The program doesn't stop just because you show a screen."
    "Game over."
    return
    
label test():
    "This works"
    return
This came up on the Questions thread: viewtopic.php?f=8&t=47009