Solved-How to make an Author's Note button on the 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.
- Batensan
- Regular
- Posts: 74
- Joined: Fri Jul 22, 2011 11:43 pm
- Completed: Moon Observatory (Ciel, Anholly, Iris), Pizzaro Project Deep Dish
- Tumblr: batensan
- Deviantart: batensan
- itch: batensan
- Contact:
Solved-How to make an Author's Note button on the main menu?
I'd like to make a button at the start screen of the game where it has Start Game, Load Game, etc., and have the play be able to select an Author's Note to read the things there. How do I go about making a button that will, perhaps, jump to the label authornote for the player to read?
Last edited by Batensan on Sat Aug 01, 2015 3:58 pm, edited 1 time in total.
Developer of Moon Observatory.
- korova
- Veteran
- Posts: 217
- Joined: Sat Jun 27, 2009 5:15 pm
- Completed: Ivy, Chocolate, Time, Clair Obscur
- Projects: Writing exercises, The House [Nano18]
- Tumblr: korova08
- itch: korova
- Location: Normandie, France
- Contact:
Re: How to make an Author's Note button on the main menu?
In the section "screen main_menu" in the screens.rpy file, you add a textbutton to the existing textbuttons, and make it go to a label where your author's note is written.
(I think that replace "Start" by "Jump" might work too, I'm not sure what the real difference is)
And somewhere else, you insert your new label with your text
Code: Select all
screen main_menu:
# Pour être sûr que tout autre menu est remplacé
tag menu
textbutton _("Start Game") action Start()
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("Help") action Help()
textbutton _("Quit") action Quit(confirm=False)
# My button to my author's note
textbutton _("Author's note") action Start("authors_note")
And somewhere else, you insert your new label with your text
Code: Select all
label authors_note:
"my awesome author's note here"
"More notes"
return # to go back to the main menu
- Batensan
- Regular
- Posts: 74
- Joined: Fri Jul 22, 2011 11:43 pm
- Completed: Moon Observatory (Ciel, Anholly, Iris), Pizzaro Project Deep Dish
- Tumblr: batensan
- Deviantart: batensan
- itch: batensan
- Contact:
Re: How to make an Author's Note button on the main menu?
Thank you! It was more simple than I thought...
Developer of Moon Observatory.
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: How to make an Author's Note button on the main menu?
Don't use Start(). That starts a whole new game, starting at the author's note, as if that were the start of a new game. Not a good idea.
Instead, you have two/three options.
You can use Jump and jump to a label. Then it will look like what you normally have in game, with backgrounds and sprites if you want it and say screens...all of that.
Or you can create a screen with the author's note as text placed on it and you can Show that screen. If you have given the screen a menu tag (which I think is the best way to do it when you are creating screens that are shown from the main menu?) then you can use ShowMenu.
Instead, you have two/three options.
You can use Jump and jump to a label. Then it will look like what you normally have in game, with backgrounds and sprites if you want it and say screens...all of that.
Or you can create a screen with the author's note as text placed on it and you can Show that screen. If you have given the screen a menu tag (which I think is the best way to do it when you are creating screens that are shown from the main menu?) then you can use ShowMenu.
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
*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
- korova
- Veteran
- Posts: 217
- Joined: Sat Jun 27, 2009 5:15 pm
- Completed: Ivy, Chocolate, Time, Clair Obscur
- Projects: Writing exercises, The House [Nano18]
- Tumblr: korova08
- itch: korova
- Location: Normandie, France
- Contact:
Re: Solved-How to make an Author's Note button on the main m
So, if I understand well, using Start() will like play a "mini game" with author's note text, and then go back to the main menu ?
Author's note is somehow independent of the regular game, as i understand it.
If the button is in the main menu, no game is running at the moment ? So where is the the problem of using Start() ?
Personally, I would use a screen, but I thought Jump() or Start() would be more simple, and I didn't have the courage to explain how to build a special screen for the Author's notes.
Author's note is somehow independent of the regular game, as i understand it.
If the button is in the main menu, no game is running at the moment ? So where is the the problem of using Start() ?
Personally, I would use a screen, but I thought Jump() or Start() would be more simple, and I didn't have the courage to explain how to build a special screen for the Author's notes.
-
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: Solved-How to make an Author's Note button on the main m
The best way to do this would not be to jump to a label but to make a screen with text and a "back" button. Then have the button show the screen and allow you to press the button to hide the screen.