[Solved] Displaying textbox underneath menu choice screen

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
PXL
Newbie
Posts: 21
Joined: Wed Oct 14, 2015 4:48 pm
Contact:

[Solved] Displaying textbox underneath menu choice screen

#1 Post by PXL »

How would one go about keeping the textbox on screen while simultaneously displaying menu choices? At the moment, the textbox disappears as soon as the menu choices appear on the screen. I am pretty new to anything that has to do with Ren'Py, so a dummy example would be much appreciated!
Last edited by PXL on Sat Oct 17, 2015 9:20 am, edited 1 time in total.

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: Displaying the textbox underneath menu choice screen

#2 Post by trooper6 »

If you do it like this, the text box with the question "What do you choose?" will disappear.

Code: Select all

"What do you choose?"
menu:
    "Choice A":
        jump ch_A
    "Choice B":
        jump ch_B
If you do it like this, on the other hand, the text box with the question "What do you choose?" will stay on the screen.

Code: Select all

menu:
    "What do you choose?"
    "Choice A":
        jump ch_A
    "Choice B":
        jump ch_B
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

PXL
Newbie
Posts: 21
Joined: Wed Oct 14, 2015 4:48 pm
Contact:

Re: Displaying the textbox underneath menu choice screen

#3 Post by PXL »

Thank you so much!

However, is there a way to make the menu choices appear after the textbox line rather than simultaneously?

philat
Eileen-Class Veteran
Posts: 1912
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Displaying the textbox underneath menu choice screen

#4 Post by philat »

Try this.

Code: Select all

"What do you choose?"
menu:
    extend "" # extra line

    "Choice A":
        jump ch_A
    "Choice B":
        jump ch_B

PXL
Newbie
Posts: 21
Joined: Wed Oct 14, 2015 4:48 pm
Contact:

Re: Displaying the textbox underneath menu choice screen

#5 Post by PXL »

You guys are miracle workers! This is exactly what I was looking for. Thank you!

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: [Solved] Displaying textbox underneath menu choice scree

#6 Post by Donmai »

philat wrote:Try this.
Hey, nice trick! Simple and effective.
Thank you so much. 8)
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Re: Displaying the textbox underneath menu choice screen

#7 Post by Jae »

philat wrote:Try this.

Code: Select all

"What do you choose?"
menu:
    extend "" # extra line

    "Choice A":
        jump ch_A
    "Choice B":
        jump ch_B
Ugh, and all this time I was duplicating the same text line and setting the cps to zero. Why didn't I think of using extend... Gah!

User avatar
SilverSnow
Regular
Posts: 182
Joined: Tue Aug 27, 2013 6:28 am
Completed: Bus Stop, Before the Tale, White Book Complete Volume, See You, The Raven
Projects: Secrets...
Tumblr: stchematelier
itch: st-chem-atelier
Location: Edge of Black Hole
Discord: SHatsuyuki#1452
Contact:

Re: [Solved] Displaying textbox underneath menu choice scree

#8 Post by SilverSnow »

I was always wondering about this! Thank you! ^^
Image

Post Reply

Who is online

Users browsing this forum: 3N16M4, Bing [Bot], Google [Bot]