Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few ways to make the game in Ren'Py wait for player action before progressing:

  1. Use a label and a jump statement. You can create a label that serves as a waiting point in your game, and use a jump statement to return to that label until the player completes a certain action. For example:

label waitforplayer: # display some text or image to prompt the player $ renpy.pause() # wait for the player to click or press a key jump waitforplayer # return to this label until the player completes the action

  1. Use a show statement with pause=True. You can use the show statement with the pause=True option to display a text or image and wait for the player to click or press a key before progressing to the next line. For example:

show "Please click the button to continue" pause=True

this line will not be executed until the player clicks the button

  1. Use a menu with a "continue" option. You can create a menu that only has one option, "continue", and use it to wait for the player to click on it before progressing. For example:

menu: "Please click the button to continue": # this option will only be displayed when the player clicks "Continue": # this line will not be executed until the player clicks "Continue"