Re: A simple navigation map tutorial
Posted: Mon Oct 26, 2015 7:11 am
Stupid question, but how can I make the choice available on a later scenario?
Supporting creators of visual novels and story-based games since 2003.
https://lemmasoft.renai.us/forums/
https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=22410
Menus are standard screens defined in the screens.rpy file. You can add and remove buttons, and make them pretty much what you want, including jumping around.SBG_Eric wrote:Can I build this into a menu rather than using it directly in the game's Script.rpy file? The general idea would be to have an menu button that would take a player to the game's overland map for fast-travel.
Nope, reuse as you want to.noeinan wrote:Do you have any rules or requirements for how you would like the images or code used?
No need. Just use a single ground image with all planets squashed, then an idle image with all planets in one piece, and add a bunch of "if *_destroyed" conditions in your screen declaration. Ren'Py will recompose both images so the right one is shown to the user.marigoldsofthenight wrote:Let's say I want each planet to be able to be nullified like the earth. Do I need to make separate screens for each individual one?
Yes you can.Ishigreensa wrote:Question: Can I use?
screen choice:
imagemap:
if grab == 'xxx':
hotspot ( ) clicked Return('xxx')
or can I only use IF ... True in screen language?
Not sure I understand the question correctly, but you can always jump to their labels from anywhere, including from more standard choices.forsety wrote:Stupid question, but how can I make the choice available on a later scenario?
From the doc :Zeroth wrote:Also i wanted to ask how do you make a jump to another label in this case the main map to "fade" so it isn't an abrupt jump?
The call screen statement takes an optional with keyword, followed by a transition. The transition takes place when the screen is first displayed. A with statement after the transition runs after the screen is hidden, provided control is not transferred.






And for the love of god, use "call screen" to bring it up instead of "show screen"!