Code: Select all
$ renpy.suspend_rollback(True)
label loop:
$ renpy.log("In the loop!" + str(datetime.datetime.now()))
show eileen sad
pause 1
show eileen happy
pause 1
jump loop
# the actual game has a listener for a button click that jumps to cont
label cont:
$ renpy.suspend_rollback(False)
As for what to do - this is a large project, so ideally I'd like to find a solution that doesn't involve a major rewrite. My first instinct is to disable saving during these loops, but it looks like that's essentially what `suspend_rollback(true)` should be doing.
Another question is, is this really the best way to do this type of loop? Is there a better pattern?