Ask Your Question
1

How can I make the game in renpy wait for player action before progressing?

asked 2021-12-07 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-04-02 16:00:00 +0000

nofretete gravatar image

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"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-07 11:00:00 +0000

Seen: 18 times

Last updated: Apr 02 '22