(Solved) Hide Main Menu for Extras Room

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
kaleidofish
Veteran
Posts: 292
Joined: Sat Jan 28, 2012 10:25 pm
Completed: Tell Her a Story (Nano12), In This Dream of Ours, The Mishka Effect (Nano14), Saving Zoey (Asylum Jam 2014), Fairly Dangerous (Nano15), Palette Swap (Nano16)
Projects: see my site!
Organization: Kaleidofish Studios, Team ANARKY
Tumblr: kaleidofish
Deviantart: kaleidofish
Location: Silent Hilladelphia
Contact:

(Solved) Hide Main Menu for Extras Room

#1 Post by kaleidofish » Thu Feb 09, 2012 9:59 am

I feel like I've hit a wall here. :?

I've finally gotten my game to add a "Bonus" button upon completion (through use of "$ persistent.end = True" at the end, and "if persistent.end: textbutton _("Bonus") action ui.jumps("bonus")" in the main_menu section of the screens.rpy page).

My problem is that whenever the Bonus button is clicked, it doesn't clear away the main menu...all the text just appears right on top of it. I figure that's because it's jumping to a label - not a screen, but even when I tried to do "show image" to cover up the main menu, it didn't work. I'm sure there's a better way to do this...I'm just confused on where to go from here.

I'm trying to make my Bonus room similar to the one in TCAST...page comes up, and you choose what to read from a menu. I know how to do that part. It's creating the page that contains that menu that's the issue.

Thanks for your help!

Edit: Also, what's the command for returning to the main menu? I'd like one of the last choices (something like "Back to Main") to do a "return."
Last edited by kaleidofish on Thu Feb 09, 2012 10:25 pm, edited 1 time in total.
avatar by 15385bic
Redwood Crossing * THE MISHKA EFFECT [NaNo14] * PALETTE SWAP [NaNo16] * FAIRLY DANGEROUS [NaNo15] * Twitter

Visit kaleidofishstudios.com to learn more about what I'm working on.

User avatar
Mild Curry
Regular
Posts: 107
Joined: Fri Jul 02, 2010 3:03 pm
Projects: That's The Way The Cookie Crumbles
Organization: TwinTurtle Games
Contact:

Re: Extras Room Help?

#2 Post by Mild Curry » Thu Feb 09, 2012 3:50 pm

Is your bonus menu a screen? Then you could put 'tag menu' at the top of it and use 'ShowMenu('bonus') instead.

If you're not keen on that, try putting 'hide screen main_menu' at the beginning of the 'bonus' label.

There's probably be a more universal command for returning to the main menu, but what I do is usually just restart the game with renpy.full_restart()

User avatar
kaleidofish
Veteran
Posts: 292
Joined: Sat Jan 28, 2012 10:25 pm
Completed: Tell Her a Story (Nano12), In This Dream of Ours, The Mishka Effect (Nano14), Saving Zoey (Asylum Jam 2014), Fairly Dangerous (Nano15), Palette Swap (Nano16)
Projects: see my site!
Organization: Kaleidofish Studios, Team ANARKY
Tumblr: kaleidofish
Deviantart: kaleidofish
Location: Silent Hilladelphia
Contact:

Re: Extras Room Help?

#3 Post by kaleidofish » Thu Feb 09, 2012 10:24 pm

It's easier for me to deal with it as a label rather than a screen, so it's not a screen.

Thank you, your solution worked perfectly! I should have been putting "hide screen main_menu" instead of "hide main_menu" the whole time. And your code for the restart works fine, too. Thanks again.
avatar by 15385bic
Redwood Crossing * THE MISHKA EFFECT [NaNo14] * PALETTE SWAP [NaNo16] * FAIRLY DANGEROUS [NaNo15] * Twitter

Visit kaleidofishstudios.com to learn more about what I'm working on.

Post Reply

Who is online

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