I'm attempting to loop 15 frames on screen, my current workaround is to list every photo file individually like so:
Code: Select all
$ time = 0.09
image ser_animated:
yalign 0.1 xalign 0.2
block:
"Ser/ser1.png"
pause time
"Ser/ser2.png"
pause time
"Ser/ser3.png"
#and so on up to ser15.png
pause time
repeat
show ser_animated with dissolve
How I attempted to solve this problem was an python function that I called to update the number of the frame with in the ATL block like so (was unsuccessful):
Code: Select all
python:
time = 0.09
counter = 0
def counter_function( ):
if (counter < 15):
counter += 1
else:
counter = 0
image ser_animated:
yalign 0.1 xalign 0.2
block:
counter_function( )
"Ser/ser[counter].png"
pause time
repeat
show ser_animated with dissolve
I realized the python code need to be put at the beginning of the script as
Code: Select all
init python://End of Update
This however shows a variety of error message depending on the exact way I write the code. I'm not particularly experienced with Python and renpy so it could be either or. It could also be how the ATL language interacts with everything. Perhaps there is a way to do this without Python?
All help and suggestions welcome!
Thank you in advance, I really appreciate you all taking the time to read this
