Code: Select all
## To define variables
init offset = -1
$ bob_points = 0
$ larry_points = 0
$ bob_max = 10
$ larry_max = 10
$ variable = False
Code: Select all
## Screen button##
textbutton "Stats"
action Show("stats_screen")
And for the information on the screen itself:
Code: Select all
## Stats Screen ################################################################
##
## Show player stats
screen stats_screen():
frame:
has vbox
text "Bob: [bob_points] points"
text "Larry: [larry_points] points"
textbutton "Return" action Return()
label aff_screen_label:
call screen aff_screen
return
File "game/screens.rpy", line 584: expected statement.
action Show->("stats_screen")
The -> is a red arrow.
Any help is greatly appreciated. Thanks in advance!