Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sun May 26, 2013 5:06 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Feb 09, 2012 9:59 am 
Veteran
User avatar

Joined: Sat Jan 28, 2012 10:25 pm
Posts: 205
Location: Hinamizawa
Completed: Tell Her a Story (Nano 2012), In This Dream of Ours
Organization: ouroboros[connect], Team ANARKY
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."

_________________
Main Website * Tumblr
Play: In This Dream of Ours (5/7/2012)
Working on: Skylines, Dream's Dénouement, The Girl in Red
ouroborosconnect.com


Last edited by kaleidofish on Thu Feb 09, 2012 10:25 pm, edited 1 time in total.

Top
 Profile Send private message  
 
 Post subject: Re: Extras Room Help?
PostPosted: Thu Feb 09, 2012 3:50 pm 
Regular
User avatar

Joined: Fri Jul 02, 2010 3:03 pm
Posts: 107
Projects: That's The Way The Cookie Crumbles
Organization: TwinTurtle Games
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()


Top
 Profile Send private message  
 
 Post subject: Re: Extras Room Help?
PostPosted: Thu Feb 09, 2012 10:24 pm 
Veteran
User avatar

Joined: Sat Jan 28, 2012 10:25 pm
Posts: 205
Location: Hinamizawa
Completed: Tell Her a Story (Nano 2012), In This Dream of Ours
Organization: ouroboros[connect], Team ANARKY
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.

_________________
Main Website * Tumblr
Play: In This Dream of Ours (5/7/2012)
Working on: Skylines, Dream's Dénouement, The Girl in Red
ouroborosconnect.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group