[SOLVED] Sequential images and skipping

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
User avatar
fullmontis
Regular
Posts: 129
Joined: Sun May 05, 2013 8:03 am
Deviantart: fullmontis
itch: fullmontis
Location: Italy
Contact:

[SOLVED] Sequential images and skipping

#1 Post by fullmontis »

Ok, so I am trying to show two images on the screen one after the other, and give them a specific duration (like 1sec). I used the following code and it is working fine:

Code: Select all

show image1
pause 1.0
hide image1

show image2
pause 1.0
hide image2
This works as intended, minus one thing: if the player skips the first image, then the second one is skipped as well. I want the player to be able to see the second image while still being able to skip the time to see them.

I found one solution in the following:

Code: Select all

show image1
pause
hide image1

show image2
pause
hide image2
This works as intended, but the problem is that the images remain indefinitely on the screen unless the player clicks, and I would like to avoid this.

Another solution would be to use the hard option for the pauses, but I don't like to prevent the player from skipping certain parts.

Does anyone know of a way to solve this?
Last edited by fullmontis on Thu Apr 02, 2020 1:11 pm, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Sequential images and skipping

#2 Post by Alex »

Try to use

Code: Select all

$ renpy.pause(1.0)
instead of

Code: Select all

pause 1.0
https://www.renpy.org/doc/html/other.html#renpy.pause

User avatar
fullmontis
Regular
Posts: 129
Joined: Sun May 05, 2013 8:03 am
Deviantart: fullmontis
itch: fullmontis
Location: Italy
Contact:

Re: Sequential images and skipping

#3 Post by fullmontis »

It works! I knew there was some trivial solution to this... Thank you Alex for the help!

Post Reply

Who is online

Users browsing this forum: Google [Bot]