documentation indexreference manualfunction index

renpy.checkpoint

Function: renpy.checkpoint (data=None):

This creates a checkpoint that the user can rollback to. The checkpoint is placed at the statement after the last statement that interacted with the user. Once this function has been called, there should be no more interaction with the user in the current Python block.

data - If not None, this contains data that can be accessed using renpy.roll_forward_info if and when the current statement is re-executed due to the user rolling back and then rolling forward again.

renpy.checkpoint should be called after ui.interact.


Example

See the example in renpy.roll_forward_info.



documentation indexreference manualfunction index