Page 1 of 1

Make navigation screen animate in only once

Posted: Wed Jul 29, 2015 10:45 pm
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

Re: Make navigation screen animate in only once

Posted: Wed Jul 29, 2015 11:47 pm
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

Re: Make navigation screen animate in only once

Posted: Thu Jul 30, 2015 12:48 am
by shindigs
Thanks for the quick reply :) Got it!