[Solved] skipping prevention?

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
Lysandrus
Newbie
Posts: 10
Joined: Sat Dec 09, 2017 7:04 pm
Deviantart: Lysandrus
Skype: ~Raven Jennings~
Contact:

[Solved] skipping prevention?

#1 Post by Lysandrus »

"better pour the mix in."

pause (1.0)

show pinkcake at t11 zorder 2

pause (2.0)

show pinkcake2 at t11 zorder 2

pause (0.5)

show pinkcake3 at t11 zorder 2

I don't want them to be able to click and skip this sequence. I want them to be able to click but the clicks do nothing until its over.
Last edited by Lysandrus on Mon Dec 11, 2017 3:18 pm, edited 4 times in total.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Can I Temporarily Disable Clicking to continue?

#2 Post by Ocelot »

Use $ renpy.pause(1.0, hard=True)
https://www.renpy.org/doc/html/other.html#renpy.pause wrote:renpy.pause(delay=None, music=None, with_none=None, hard=False, checkpoint=None)
Causes Ren'Py to pause. Returns true if the user clicked to end the pause, or false if the pause timed out or was skipped.

delay
If given, the number of seconds Ren'Py should pause for.
music
Retained for compatibility purposes.
with_none
Determines if a with None clause is executed at the end of the pause.
hard
If true, a click will not interrupt the pause. Use this sparingly, as it's hard to distinguish a hard pause from a crashing game.
checkpoint
If true, a checkpoint will be set, and players will be able to roll back to this statement. If false, no checkpoint will be set. If None, a checkpoint will only be set if delay is set.
< < insert Rick Cook quote here > >

User avatar
Lysandrus
Newbie
Posts: 10
Joined: Sat Dec 09, 2017 7:04 pm
Deviantart: Lysandrus
Skype: ~Raven Jennings~
Contact:

Re: Can I Temporarily Disable Clicking to continue?

#3 Post by Lysandrus »

Ocelot wrote: Sun Dec 10, 2017 7:01 am Use $ renpy.pause(1.0, hard=True)
https://www.renpy.org/doc/html/other.html#renpy.pause wrote:renpy.pause(delay=None, music=None, with_none=None, hard=False, checkpoint=None)
Causes Ren'Py to pause. Returns true if the user clicked to end the pause, or false if the pause timed out or was skipped.

delay
If given, the number of seconds Ren'Py should pause for.
music
Retained for compatibility purposes.
with_none
Determines if a with None clause is executed at the end of the pause.
hard
If true, a click will not interrupt the pause. Use this sparingly, as it's hard to distinguish a hard pause from a crashing game.
checkpoint
If true, a checkpoint will be set, and players will be able to roll back to this statement. If false, no checkpoint will be set. If None, a checkpoint will only be set if delay is set.
It halts the aforementioned sequence

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Can I Temporarily Disable Clicking to continue?

#4 Post by Ocelot »

That is strange. Did you try $ renpy.pause(delay=1.0, hard=True) as well?
< < insert Rick Cook quote here > >

User avatar
Lysandrus
Newbie
Posts: 10
Joined: Sat Dec 09, 2017 7:04 pm
Deviantart: Lysandrus
Skype: ~Raven Jennings~
Contact:

Re: Can I Temporarily Disable Clicking to continue?

#5 Post by Lysandrus »

yes, still halts it. I should be more specific .I want them to click and it do nothing until I specify when it can again.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Can I make the illusion of clicking while actually their clicks do nothing?

#6 Post by IrinaLazareva »


User avatar
Lysandrus
Newbie
Posts: 10
Joined: Sat Dec 09, 2017 7:04 pm
Deviantart: Lysandrus
Skype: ~Raven Jennings~
Contact:

Re: skipping prevention?

#7 Post by Lysandrus »

Its all good now

Post Reply

Who is online

Users browsing this forum: plastiekk