How do I pause a side sprite's dialogue for 2 seconds?

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
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

How do I pause a side sprite's dialogue for 2 seconds?

#1 Post by Obscura »

Situation:
- Background is slowly moving, and there's some animation
- Side image of character appears, says "hello"

I want that side image and "hello" to stay on screen for 2 seconds. The user might click through the hello and they'll miss it due to the moving background.

Right now my code looks like:

Code: Select all

eside "hello"
$renpy.pause(2.0, hard=True)
Unfortunately, I'm still able to click through and if I'm clicking at the wrong time, the side sprite can be missed in a blink.

Is there any way to keep the dialogue on screen and disable clicking for those 2 seconds?

Thanks!
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: How do I pause a side sprite's dialogue for 2 seconds?

#2 Post by indoneko »

I'm not sure we can do it with character. How about using show image + show text instead?
My avatar is courtesy of Mellanthe

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: How do I pause a side sprite's dialogue for 2 seconds?

#3 Post by Obscura »

I'll try it that way. Thanks, indoneko!
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How do I pause a side sprite's dialogue for 2 seconds?

#4 Post by trooper6 »

I'm on my phone, so I can't give details, but other options involve:

There was a a config variable that controls if dismissal is allowed. I believe it takes a function. You could use that to disallow dismissal. You could also have a screen that takes away the key bindings that allow for dismissal, show it, pause for two seconds and then hide it.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: No registered users