pausing dialogue while "about" screen is open

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
SavedByZero
Newbie
Posts: 12
Joined: Tue Jun 16, 2020 11:56 am
Contact:

pausing dialogue while "about" screen is open

#1 Post by SavedByZero »

Hey all,

How would I stop the user from advancing the dialogue when they click on the background image of my "About" screen (or any other popup overlay)? Right now I have a python hack where I just close the window any time the user clicks on the screen, but that's not ideal. Can I solve this problem without deephacking? I've tried to search for answers on here but I'm not finding anything obvious.

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

Re: pausing dialogue while "about" screen is open

#2 Post by Alex »

Try to set 'modal' property for your 'About' screen - https://www.renpy.org/doc/html/screens. ... -statement

SavedByZero
Newbie
Posts: 12
Joined: Tue Jun 16, 2020 11:56 am
Contact:

Re: pausing dialogue while "about" screen is open

#3 Post by SavedByZero »

Oh great; I guess I should have looked at the word 'modal' more closely when I was scanning. Thanks!

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: pausing dialogue while "about" screen is open

#4 Post by trooper6 »

Either set the modal to true, or call the screen rather than show the screen.
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: bananamilk, Google [Bot]