Returning to "Extras" menu instead of main menu
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.
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.
Returning to "Extras" menu instead of main menu
In the extras section of my game, I have a "bonus scene" option. Since I'm using Start("label") for the bonus scene, if I put Return at the end, it sends me back to the main menu. I want to return to the Extras menu screen instead of main menu after the bonus scene ends. What do I do?
- Alera
- Miko-Class Veteran
- Posts: 651
- Joined: Sun Mar 21, 2010 3:20 am
- Completed: Tortichki // Zayay // Hero's Spirit
- Deviantart: psyalera
- itch: psyalera
- Location: UK
- Contact:
Re: Returning to "Extras" menu instead of main menu
Maybe have a label for your extras menu and instead of using 'Return', use 'jump' at the end of your scene to go back to that label and the menu? But what @philat suggested sounds like a 'cleaner' way of doing it.
- KairuKyun
- Veteran
- Posts: 286
- Joined: Thu Feb 12, 2015 4:10 pm
- Completed: No One But You, Catch Canvas, Sickness, Written in the Sky, Wander no more, Warped Reality
- Projects: Warped Reality
- Organization: Unwonted Studios
- IRC Nick: Kairu_kyun
- Tumblr: karamuchan
- Contact:
Re: Returning to "Extras" menu instead of main menu
Couldn't you just
Thats what i did
Code: Select all
ShowMenu("extras")
Kyle Tyner
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality
Creator of Unwonted Studios
ktyner@unwontedstudios.co
Visit Our Website
Projects: No One But You, Sickness, Written in the Sky, Wander no more, Catch Canvas, Warped Reality
Re: Returning to "Extras" menu instead of main menu
Doesn't that require the scene to have been played first to activate the "replay" option? What I meant is that I have this completely new scene that you will not encounter in-game and only will be accessible from the Extras menu.philat wrote:Maybe this. http://www.renpy.org/doc/html/rooms.html#replay
Yeah, I saw this method on the old cookbook in the Wiki, but it seemed rather roundabout and I wanted to know if there's a simpler way to do it rather than have multiple empty labels with nothing but "call screen" in it. Because if I use this method the script doesn't seem to work unless i make labels for every single item on my extras, including the CG gallery (unless I'm doing something wrong and didn't realize it).Alera wrote:Maybe have a label for your extras menu and instead of using 'Return', use 'jump' at the end of your scene to go back to that label and the menu? But what @philat suggested sounds like a 'cleaner' way of doing it.
Huh? ShowMenu is a screen command, right? Will it work from a label?KairuKyun wrote:Couldn't you justThats what i didCode: Select all
ShowMenu("extras")
Currently this is what my codes look like:
Code: Select all
screen extras:
# This ensures that any other menu screen is replaced.
tag menu
imagemap:
ground 'extrasidle.jpg'
idle 'extrasidle.jpg'
hover 'extrashover.jpg'
hotspot (20, 15, 100, 100) action Return() activate_sound "click.wav"
hotspot (23, 146, 457, 121) action ShowMenu("cg") activate_sound "click.wav"
hotspot (23, 272, 457, 121) action Start("bonusscene") activate_sound "click.wav"
Code: Select all
label bonusscene
"blahblah"
return
Re: Returning to "Extras" menu instead of main menu
Read the whole document. There's a locked argument for the Replay action. If you set it to false, you can use it for new scenes.
- Alera
- Miko-Class Veteran
- Posts: 651
- Joined: Sun Mar 21, 2010 3:20 am
- Completed: Tortichki // Zayay // Hero's Spirit
- Deviantart: psyalera
- itch: psyalera
- Location: UK
- Contact:
Re: Returning to "Extras" menu instead of main menu
If you're using a screen, wouldn't a simple 'show/call screen' at the end of your scene work? Or maybe I'm misunderstanding the situation.
Re: Returning to "Extras" menu instead of main menu
I did read the entire thing, but I didn't get what the True/False setting does.philat wrote:Read the whole document. There's a locked argument for the Replay action. If you set it to false, you can use it for new scenes.
Got it to work now, thanks!
Who is online
Users browsing this forum: Bing [Bot]