Modifying Title Screen

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
User avatar
That Oyajicon
Regular
Posts: 33
Joined: Sun May 29, 2016 7:31 pm
Location: The Pillars of Nosgoth
Contact:

Modifying Title Screen

#1 Post by That Oyajicon » Mon May 22, 2017 2:35 pm

So I've just learned how to use imagemaps, and I want to use that knowledge to make a snazzy new title screen!

This is the base image I'm working with:

Image

My question is, how do I take this image and turn it into a proper title screen?

I know how to make imagemaps that lead to certain script events, but how do I make it so that they lead to things like the options screen or the start of the game?

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: Modifying Title Screen

#2 Post by trooper6 » Mon May 22, 2017 2:44 pm

You already have an example of the commands to use to go to options screen or the start of the game in the screens.rpy file that comes with any new project. You earlier asked for tips on learning Renpy. A tip I neglected to mention is when you create a new project, look through the code in the files that are automatically generated. They are great examples of how to make screens and screen actions and screen elements. The code you are looking for is under the navigation screen.

Second thing. Imagebuttons are better than imagemaps. You might want to make your main menu with imagebuttons instead. A cookbook for imagebuttons is here: viewtopic.php?f=51&t=22565
Note: there is an error with this code that is easily fixed. The post that explains how to fix it is here: viewtopic.php?p=438515#p438515

ETA: I just created a version of the Imagebuttons tutorial that has the problem fixed. It is currently the last post on that thread. You can download that and check out the tutorial.
Last edited by trooper6 on Mon May 22, 2017 2:56 pm, edited 1 time in total.
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
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: Modifying Title Screen

#3 Post by Scribbles » Mon May 22, 2017 2:47 pm

try looking at the main menu screen language/code, then just replace it with your imagemap.

Code: Select all

hotspot (0,0,0,0) action Start()
hotspot(0,0,0,0) action ShowMenu("load")
and so on (though with your hotspots)

If you're worried about destroying code, just create a different screen and then use it instead once it's done? or just notate it out :)
Image - Image -Image

User avatar
That Oyajicon
Regular
Posts: 33
Joined: Sun May 29, 2016 7:31 pm
Location: The Pillars of Nosgoth
Contact:

Re: Modifying Title Screen

#4 Post by That Oyajicon » Mon May 22, 2017 4:26 pm

trooper6 wrote: ETA: I just created a version of the Imagebuttons tutorial that has the problem fixed. It is currently the last post on that thread. You can download that and check out the tutorial.
Real quick, when I try to incorporate that code into a new game, I get an error telling me that "test_one" and all its ilk aren't valid sound channels. What can I do to fix this?

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: Modifying Title Screen

#5 Post by trooper6 » Mon May 22, 2017 6:20 pm

You should just take the files from that tutorial and put them in your game. You could run through the tutorial while looking at the code at the same time to see how they work, and then using that code as a model, create your own code.
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
That Oyajicon
Regular
Posts: 33
Joined: Sun May 29, 2016 7:31 pm
Location: The Pillars of Nosgoth
Contact:

Re: Modifying Title Screen

#6 Post by That Oyajicon » Mon May 22, 2017 6:32 pm

When I copy the contents of your ZZ folder over to a new game project, the tutorial game ends up looking like this:

Image

Not sure what I'm doing wrong, tbh.

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: Modifying Title Screen

#7 Post by trooper6 » Mon May 22, 2017 11:17 pm

You don't need to copy the folder into a new game project. You can just put the entire ZZ folder wherever you have your projects in general and load from the ZZ folder.
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

Post Reply

Who is online

Users browsing this forum: No registered users