Page 1 of 1

[SOLVED] Sequential images and skipping

Posted: Thu Apr 02, 2020 9:42 am
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?

Re: Sequential images and skipping

Posted: Thu Apr 02, 2020 12:25 pm
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

Re: Sequential images and skipping

Posted: Thu Apr 02, 2020 1:11 pm
by fullmontis
It works! I knew there was some trivial solution to this... Thank you Alex for the help!