- Apr 19, 2018
- 705
- 1,655
I'm playing around with a game that uses still images for animation using renpy.pause in between the images. I decided to try and do the animations in the code with a while loop, to make them longer or shorter, the problem is I can't figure out how to allow the user to rollback before the while loop starts. The game will rollback to the start of the while loop but not the line of dialogue before it. I assumed it was filling up the rollback buffer so I used define config.hard.rollback_limit = 1000 in the script file, and it didn't help to rollback before the while loop starts.
I tried messing around with renpy.checkpoint before the while loop, but not completely understanding the mechanics of it, I couldn't get it to make a difference.
Does Ren'Py just not like while loops and this is why I don't see them in games, or is this something that can be mitigated? Any help would be appreciated.
I tried messing around with renpy.checkpoint before the while loop, but not completely understanding the mechanics of it, I couldn't get it to make a difference.
Does Ren'Py just not like while loops and this is why I don't see them in games, or is this something that can be mitigated? Any help would be appreciated.