Menu/map screen combo?

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
SundownKid
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:

Menu/map screen combo?

#1 Post by SundownKid » Thu Mar 29, 2012 12:44 pm

I want to create a separate menu that functions similarly to a typical game menu, e.g. having text customizable in the game's code, but when you hover over a choice, it changes the location of a pointer on the screen (e.g. to point at a map location).

Here is an example of what I'm talking about (click to enlarge):

Image

This would change the pointer location when you roll over the button but before you click on it.

Also, is it possible to add a small thumbnail image inline with the menu text?

User avatar
sciencewarrior
Veteran
Posts: 356
Joined: Tue Aug 12, 2008 12:02 pm
Projects: Valentine Square (writer) Spiral Destiny (programmer)
Location: The treacherous Brazilian Rainforest
Contact:

Re: Menu/map screen combo?

#2 Post by sciencewarrior » Thu Mar 29, 2012 1:00 pm

You can specify an action to fire when the user hovers the cursor over a button to show your icon, and another action to hide the icon on unhover: http://www.renpy.org/doc/html/screens.html#button
Keep your script in your Dropbox folder.
It allows you to share files with your team, keeps backups of previous versions, and is ridiculously easy to use.

User avatar
SundownKid
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: Menu/map screen combo?

#3 Post by SundownKid » Thu Mar 29, 2012 1:16 pm

EDIT: Never mind, I figured out that you can do it by calling a vbox screen with the choices. Thanks, and I'll test it out.

Post Reply

Who is online

Users browsing this forum: No registered users