Make navigation screen animate in only once

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
shindigs
Newbie
Posts: 2
Joined: Sat Dec 28, 2013 11:47 pm
Contact:

Make navigation screen animate in only once

#1 Post by shindigs »

I currently have a navigation() screen that slides in anytime a player right clicks to open the save menu. When the player moves to another screen, such as preferences, the menu slides in again with the animation. I only need the navigation screen to slide in once, and not repeat as we move between screens. Been racking my brain over this for a while! Appreciate all the help!

Also, is there any way to just have the navigation() screen show on right click rather than the save() screen?

Here's now the navigation() anim works:

Code: Select all

screen navigation():

    # The background of the game menu.
    window:
        style "gm_root"

    # The various buttons.
    add "prefmenuanimred"
    add "prefmenuanim"
Calling navigation in preferences:

Code: Select all

screen preferences():

    tag menu

    # Include the navigation.
    use navigation

User avatar
SinnyROM
Regular
Posts: 166
Joined: Mon Jul 08, 2013 12:25 am
Projects: Blue Birth
Organization: Cosmic Static Games
Contact:

Re: Make navigation screen animate in only once

#2 Post by SinnyROM »

Use _game_menu_screen to set the screen for right-click: http://www.renpy.org/doc/html/store_var ... enu_screen
You can set it to your navigation screen so it displays first.

Removing all instances of use navigation from the rest of screens will ensure it doesn't show more than once. However, any new screens will be shown on top of navigation, so you may have to set the zorder for the screens to display properly: http://www.renpy.org/doc/html/screens.h ... -statement

shindigs
Newbie
Posts: 2
Joined: Sat Dec 28, 2013 11:47 pm
Contact:

Re: Make navigation screen animate in only once

#3 Post by shindigs »

Thanks for the quick reply :) Got it!

Post Reply

Who is online

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