[Solved] if clicked then proceed

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
CubiC
Newbie
Posts: 5
Joined: Wed Jul 26, 2023 7:02 pm
Contact:

[Solved] if clicked then proceed

#1 Post by CubiC »

I want to write an if statement that detects if the player clicks, and if so moves on to the next line. here is the code:
$ renpy.pause(5.0, hard=True)
show image "images/Poem1.png" at poemin
with Dissolve(1.0)
$ renpy.pause(5.0, hard=True)

#if get input from player then move to the next statement

hide image "images/Poem1.png"
with Dissolve(3.0)
I want the if statement to be at the commented line. how do you do this in renpy?

Edit: I don't know how I forgot this, but the pause command does exactly this, so the code would be:
$ renpy.pause(5.0, hard=True)
show image "images/Poem1.png" at poemin
with Dissolve(1.0)
$ renpy.pause(5.0, hard=True)

pause

hide image "images/Poem1.png"
with Dissolve(3.0)

Post Reply

Who is online

Users browsing this forum: bilmem, Google [Bot]