Page 1 of 1

Adding checkpoints for rollback

Posted: Sat Dec 02, 2023 8:36 pm
by thelastsecret
I have a fairly long cut scene in my next game. It's based on commands like pause 20, and in between text is spoken and animations happen. It's possible to skip it. (I've added a screen for that.) When you want to go back, however, you can only roll back before the scene, since rollback goes back to the last interaction. However, I want it to roll back only to the last pause command.
Now, I know there is renpy.checkpoint(), but adding this alone does not work, and I'm really at loss what to do there. So if anybody could help, that would be great!
Thank you very much in advance! :)

Re: Adding checkpoints for rollback

Posted: Sun Dec 03, 2023 3:10 am
by Imperf3kt
Place this after your pauses

Code: Select all

$ renpy.block_rollback
Be aware this will block rolling back before this point entirely

Re: Adding checkpoints for rollback

Posted: Sun Dec 03, 2023 5:41 pm
by thelastsecret
Sorry, but that's not what I want: I want the player to roll back to the last pause, then have the option to roll back further or not. I do NOT want to prevent them from rolling back further!