I'm also not sure how to code the open folder so that when it's clicked, it'll hide the imagebuttons that the closed-folder opened and will also make it so that the closed-folder reappears. If someone could help with that, that'd be great.
Screens:
Code: Select all
screen folder_closed:
$ show_folder = True
zorder 100
imagebutton auto "gui/closedfolder_%s.png" action use fileone xpos 1686 ypos 100 focus_mask True
screen fileone:
zorder 100
imagebutton "gui/fileone_%s.png" action use filetwo xpos 960 ypos 540 focus_mask True
screen filetwo:
imagebutton "gui/filetwo_%s.png" action use filethree xpos 960 ypos 540 focus_mask True
screen filethree:
imagebutton "gui/filethree_%s.png" action use fileone xpos 960 ypos 540 focus_mask TrueThe error I'm getting is caused by me using the "use" tag. If anyone wants to see it, here it is:
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/screens.rpy", line 24: u'fileone' is not a keyword argument or valid child for the imagebutton statement.
imagebutton auto "gui/closedfolder_%s.png" action use fileone xpos 1686 ypos 100 focus_mask True
^
File "game/screens.rpy", line 28: expected a keyword argument, colon, or end of line.
imagebutton "gui/fileone_%s.png" action use filetwo xpos 960 ypos 540 focus_mask True
^
File "game/screens.rpy", line 31: expected a keyword argument, colon, or end of line.
imagebutton "gui/filetwo_%s.png" action use filethree xpos 960 ypos 540 focus_mask True
^
File "game/screens.rpy", line 34: expected a keyword argument, colon, or end of line.
imagebutton "gui/filethree_%s.png" action use fileone xpos 960 ypos 540 focus_mask True
^
Ren'Py Version: Ren'Py 6.99.14.3.3347
Tue May 08 17:27:14 2018