I'm making a custom screen to display something. What it is, isn't really that important as I'm just 'playing' around, but I seem to be doing something incorrectly.
I want to create a grid inside a frame that dynamically generates. What I have so far is this:
Code: Select all
screen ok_collected:
tag menu
add Movie(size=(1920, 1080))
on "show" action Play("movie", "movies/bg_static.webm", loop=True)
on "hide" action Stop("movie")
on "replace" action Play("movie", "movies/bg_static.webm", loop=True)
on "replaced" action Stop("movie")
frame:
style "collected_frame"
xpadding 100
ypadding 100
xalign 0.5
yalign 0.5
$ i = 0
$ x = 24
$ yGrid = x / 6
grid 6 yGrid spacing 100:
while $ i > $ x:
imagebutton auto "images/button_%s.png" focus_mask None action ShowMenu('load')
$ i += 1
textbutton _("Return"):
style "return_button"
action Return()
style collected_frame:
background Frame("images/frame_bg.jpg")
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/collected.rpy", line 22: u'while' is not a keyword argument or valid child for the grid statement.
while $ i > $ x:
^
Ren'Py Version: Ren'Py 6.99.13.2919