And it's been working fin up until I try and add navigation buttons, specifically the "next" button for some reason. I'm trying to use it when there is a set of images that are unlocked, to go back and forth between them.
The error I'm getting:
Code: Select all
After initialization, but before game start.
File "game/gallery.rpy", line 63, in prepare_screen
screen gallerycloseup(images):
File "game/gallery.rpy", line 63, in prepare
screen gallerycloseup(images):
File "game/gallery.rpy", line 74, in prepare
if closeuppage < len(images) - 1:
File "game/gallery.rpy", line 74, in prepare
if closeuppage < len(images) - 1:
File "game/gallery.rpy", line 75, in prepare
textbutton _("Next"):
File "game/gallery.rpy", line 75, in prepare
textbutton _("Next"):
TypeError: coercing to Unicode: need string or buffer, int found
Code: Select all
if closeuppage < len(images) - 1:
textbutton _("Next"):
action SetVariable("closeuppage" + 1)
xalign 0.9
yalign 0.97
background "black"