[solved] click though cg images one by one

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
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

[solved] click though cg images one by one

#1 Post by Kia »

I have a sequence of images without any dialogue:

Code: Select all

    show cg cg1 with dissolve
    pause 2
    show cg cg2 with dissolve
    pause 2
    show cg cg3 with dissolve
    pause 2
    show cg cg4 with dissolve
    pause 2
I assumed when the player clicks, the game will skip to the next image but it seems like the game will skip all of them, is there some setting that controls how the game skips these? or I'll have to make a screen to achieve the skipping one by one effect.
Last edited by Kia on Fri Jan 15, 2021 2:09 am, edited 1 time in total.

User avatar
MicaPowder
Newbie
Posts: 2
Joined: Fri Jan 08, 2021 5:00 am
Contact:

Re: click though cg images one by one

#2 Post by MicaPowder »

I think you can use

Code: Select all

$ renpy.pause (2.0, hard=False)
instead of the 'pause 2'

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: click though cg images one by one

#3 Post by Kia »

I want the pauses to be skip-able by player clicking, as well as the dissolve animations, but I want it to move to the next image instead of skipping the whole bunch.
of course I can do that by adding a small hard pause before each image, but it seems like too many lines of code to achieve something this simple and I wonder if there's some setting for it that I've missed.

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: click though cg images one by one

#4 Post by _ticlock_ »

Hi, Kia,

I believe that MicaPowder's suggestion ($ renpy.pause(2.0, hard=False)) should exactly do what you described (click-skipable pause to the next frame with transition without jumping through the bunch of images: repy.pause doc). In contrast, pause 2 uses with Pause(2.0) and should skip the bunch of images (RenPy 7.4)

Or did you mean to skip to the next frame without transition?

recreation
Regular
Posts: 52
Joined: Sun Jul 01, 2018 8:32 am
Contact:

Re: click though cg images one by one

#5 Post by recreation »

$ renpy.pause(2.0) should be enough iirc.

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: click though cg images one by one

#6 Post by _ticlock_ »

recreation wrote: Thu Jan 14, 2021 6:09 pm $ renpy.pause(2.0) should be enough iirc.
Right, hard=False by default.

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: click though cg images one by one

#7 Post by Kia »

oh, I didn't notice the `had=False` and assumed it's a hard pause.
I always assumed `pause 2` is the same as `$ renpy.pause(2.0)`, interesting.
Thank you everybody ^^

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]