[Answered] Pop-up message box

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
Gear
Miko-Class Veteran
Posts: 764
Joined: Tue Apr 05, 2011 10:15 pm
Projects: Tempestus Sum
Organization: Xenokos Interactive
IRC Nick: Gear
Skype: Skye.Gear
Location: Grand Prairie, TX
Contact:

[Answered] Pop-up message box

#1 Post by Gear » Mon Jun 30, 2014 8:51 am

I absolutely suck at searching the documentation for information. I never seem to find what I'm looking for.

I want to create a box that pops up in the middle of the screen. Hopefully, I can customize it as I see fit, but basically, I want a message to pop up (preferably with a sound effect), and I want a button to dismiss the message and let the game continue. Contrast, of course, with regular text/dialogue that shows up VN style. Anyone know where to start on such a thing?
Last edited by Gear on Mon Jun 30, 2014 10:16 am, edited 1 time in total.
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.

User avatar
Stapper
Regular
Posts: 96
Joined: Wed Feb 27, 2013 9:54 pm
Contact:

Re: Pop-up message box

#2 Post by Stapper » Mon Jun 30, 2014 9:22 am

You can just call a screen, with "action Return" on the button

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Pop-up message box

#3 Post by Asceai » Mon Jun 30, 2014 10:02 am

Might be an idea to use the yesno screen as a template - only include one button instead of two and make it action Return() like Stapper said.

User avatar
Gear
Miko-Class Veteran
Posts: 764
Joined: Tue Apr 05, 2011 10:15 pm
Projects: Tempestus Sum
Organization: Xenokos Interactive
IRC Nick: Gear
Skype: Skye.Gear
Location: Grand Prairie, TX
Contact:

Re: Pop-up message box

#4 Post by Gear » Mon Jun 30, 2014 10:16 am

Thanks guys. I know what I'm going to do now.
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.

Post Reply

Who is online

Users browsing this forum: No registered users