how to script title screen image?

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
shwippie
Regular
Posts: 129
Joined: Wed Dec 22, 2010 4:12 pm
Completed: Double Romance
Projects: Rolland's Candy Shop. Mitzi's Fable
Tumblr: shwippie
Deviantart: shwippie
Contact:

how to script title screen image?

#1 Post by shwippie »

I want to put an image on the title screen (the one with the menu on it when you first launch the game), but I'm not sure how to do it with python. Does anyone know the code for it? D: Sorry if it's a dumb question.

Can I also ask how the do the code for the menu, buttons, and text boxes? (or if you can direct me to the tutorial for that? I don't know why I'm having trouble finding it) Many thanks ><
Image Image Image

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: how to script title screen image?

#2 Post by Alex »

It's not hard to set the main menu background image. Just find next lines in "options.rpy"

Code: Select all

        ## The background of the main menu. This can be a color
        ## beginning with '#', or an image filename. The latter
        ## should take up the full height and width of the screen.
        mm_root = "#D0B4BA",
and change the last line to

Code: Select all

        mm_root = "my_image_filename.png",
Be shure, that file "my_image_filename.png" is in "game" folder and named exactly the same as you'll type it (I mean "My_file.png" is not the same as "my_File.png", also check the file extension "my_file.png" is not the same as "my_file.jpg").
About other stuff you can read http://www.renpy.org/wiki/renpy/doc/ref ... nce_Manual, and http://www.renpy.org/wiki/renpy/FAQ, and http://www.renpy.org/wiki/renpy/doc/tutorials/Tutorials.
It would be better if you'll post more specific questions about menus, buttons, etc. - I belive, someone will answer them.

User avatar
Soliloquy
Regular
Posts: 73
Joined: Tue Aug 25, 2015 3:42 pm
Location: Mt Holly, NJ
Contact:

Re: how to script title screen image?

#3 Post by Soliloquy »

A really excellent tutorial on how to completely customize your main, options and save/load screens is this one:
http://lemmasoft.renai.us/forums/viewto ... =51&t=9812

If you haven't coded before, it's a little overwhelming to look at. I have minimal experience, and about 99% of my code right now has been trial and error (and all I'm working on is the main screen ;) ).

User avatar
firecat
Miko-Class Veteran
Posts: 540
Joined: Sat Oct 25, 2014 6:20 pm
Completed: The Unknowns Saga series
Projects: The Unknown Saga series
Tumblr: bigattck
Deviantart: bigattck
Skype: bigattck firecat
Soundcloud: bigattck-firecat
Contact:

Re: how to script title screen image?

#4 Post by firecat »

however, now there is a better way to find the hotspot.

http://lemmasoft.renai.us/forums/viewto ... py+hotspot
Image


Image


special thanks to nantoka.main.jp and iichan_lolbot

User avatar
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 script title screen image?

#5 Post by trooper6 »

Soliloquy, don't follow the wiki, it is outdated. Stick with the new documentation.

Also, go to the cookbook thread and look up more current tutorials, such as:
http://lemmasoft.renai.us/forums/viewto ... f=8&t=9812
http://lemmasoft.renai.us/forums/viewto ... 51&t=14237
http://lemmasoft.renai.us/forums/viewto ... 51&t=24454
http://lemmasoft.renai.us/forums/viewto ... 51&t=20720
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

User avatar
Soliloquy
Regular
Posts: 73
Joined: Tue Aug 25, 2015 3:42 pm
Location: Mt Holly, NJ
Contact:

Re: how to script title screen image?

#6 Post by Soliloquy »

Thanks, trooper and firecat. I'll have to take a gander at those in the morning. ^^

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot]