Creating a Static Credits Screen [Solved]
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.
-
sometimespeanuts
- Newbie
- Posts: 2
- Joined: Tue Jul 28, 2015 9:46 pm
- Tumblr: sometimespeanuts
- Contact:
Creating a Static Credits Screen [Solved]
I'm very sorry if this has been asked before but I have been searching all over for an answer and I cannot find one I understand. I cannot figure out or understand how to create a new screen with proper formatting and the like. I wanted to create a static, unmoving credits screen that could be accessed from the main menu. When I search for help all that comes up is how to make scrolling credits. While that's good for the end of the game, its not so much for leisurely viewing. When I search how to add a screen all I get are links to the cookbook and the old wiki, and none of it makes sense to me. I tried to make one off the directions but it ended up with no background and a return button in the upper corner that I couldn't figure out how to move. I'm very sorry if all this has been answered before, I am just having the worst time finding it.
TL;DR
I need help creating a Static Credits Screen that can be accessed from the main menu.
TL;DR
I need help creating a Static Credits Screen that can be accessed from the main menu.
Last edited by sometimespeanuts on Wed Jul 29, 2015 8:59 pm, edited 1 time in total.
Re: Creating a Static Credits Screen
Offhand, the easiest method would be to just make an NVL-style narrator and have it 'say' the credits.
http://www.renpy.org/doc/html/nvl_mode.html
Edit: I'm tired and didn't read the post well enough. As such I wasn't much help, woops.
http://www.renpy.org/doc/html/nvl_mode.html
Edit: I'm tired and didn't read the post well enough. As such I wasn't much help, woops.
Last edited by orz on Tue Jul 28, 2015 11:17 pm, edited 1 time in total.
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Creating a Static Credits Screen
look at the screen language page of the documentation: http://www.renpy.org/doc/html/screens.html
First think you have to do is make your screen and put whatever you want on it.
if you want your screen of have a background, give the screen a frame.
Something like:
Be sure to read through the documentation on the screen language.
Then you just need to add a button that brings you to the credits. Your buttons that have Return, Main Menu, Save, etc. That is the Navigation Screen and it is in the screens.rpy.
Notice it looks like this:
All you'd have to do is add another button that calls your credits menu.
Like:
I really recommend looking over not only the documentation, but the screens.rpy file of your project which shows a bunch of examples of how screens are put together.
First think you have to do is make your screen and put whatever you want on it.
if you want your screen of have a background, give the screen a frame.
Something like:
Code: Select all
screen credits():
tag menu
frame:
background "images/whatever.png"
vbox: #This puts the elements in a vertical box, you could use an hbox or a grid or a fixed, etc.
text "Writer: Carol Brady"
text "Programming: Mike Brady"
text "Music and Sound: Greg and Marcia Brady"
text "Sprite Art: Jan and Peter Brady"
text "BG Art: Cindy and Bobby Brady"
text "GUI: Alice"
textbutton _("Return") action Return() Then you just need to add a button that brings you to the credits. Your buttons that have Return, Main Menu, Save, etc. That is the Navigation Screen and it is in the screens.rpy.
Notice it looks like this:
Code: Select all
##############################################################################
# Navigation
#
# Screen that's included in other screens to display the game menu
# navigation and background.
# http://www.renpy.org/doc/html/screen_special.html#navigation
screen navigation():
# The background of the game menu.
window:
style "gm_root"
# The various buttons.
frame:
style_group "gm_nav"
xalign .98
yalign .98
has vbox
textbutton _("Return") action Return()
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("Save Game") action ShowMenu("save")
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Main Menu") action MainMenu()
textbutton _("Help") action Help()
textbutton _("Quit") action Quit()
init -2:
# Make all game menu navigation buttons the same size.
style gm_nav_button:
size_group "gm_nav"All you'd have to do is add another button that calls your credits menu.
Like:
Code: Select all
##############################################################################
# Navigation
#
# Screen that's included in other screens to display the game menu
# navigation and background.
# http://www.renpy.org/doc/html/screen_special.html#navigation
screen navigation():
# The background of the game menu.
window:
style "gm_root"
# The various buttons.
frame:
style_group "gm_nav"
xalign .98
yalign .98
has vbox
textbutton _("Return") action Return()
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("Save Game") action ShowMenu("save")
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Main Menu") action MainMenu()
textbutton _("Credits") action ShowMenu("credits") #I added this
textbutton _("Help") action Help()
textbutton _("Quit") action Quit()
init -2:
# Make all game menu navigation buttons the same size.
style gm_nav_button:
size_group "gm_nav"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
-
sometimespeanuts
- Newbie
- Posts: 2
- Joined: Tue Jul 28, 2015 9:46 pm
- Tumblr: sometimespeanuts
- Contact:
Re: Creating a Static Credits Screen
Thank you so much for your help, this is exactly what I needed to understand better.
And the NGL mode is useful too.
And the NGL mode is useful too.
-
Ladycardboard
- Newbie
- Posts: 22
- Joined: Tue Jul 28, 2015 6:17 pm
- Contact:
Re: Creating a Static Credits Screen [Solved]
I added this to my game and for some reason the menu button 'credits' will not show up on the main menu screen.
-
alex.theoto
- Regular
- Posts: 55
- Joined: Sun Sep 13, 2015 3:11 pm
- Location: Greece
- Contact:
Re: Creating a Static Credits Screen [Solved]
@Ladycardboard:
Do the same thing on the section:
Do the same thing on the section:
Code: Select all
screen main_menu():Who is online
Users browsing this forum: Ocelot
