Page 1 of 1

how to show screen with transition?

Posted: Thu Dec 21, 2017 3:05 am
by birctreel
Hi all!
Totally new to this engines, and I have some problems to create screen with its transiton.
Here is my problem:

As the quick menu, I use imagemap to define this, like

Code: Select all

        imagemap:
          idle "menu/q_idle.png"
          hover "menu/q_hover.png"
          selected_idle "menu/q_idle.png"
          selected_hover "menu/q_hover.png"
          hotspot (44,615,156,60) action ShowMenu("preferences")
          hotspot (200,615,156,60) action ShowMenu("history")
          hotspot (360,615,156,60) action Preference("auto-forward", "toggle")
          hotspot (511,615,156,60) action Skip() alternate Skip(fast=True, confirm=True)
          hotspot (665,615,156,60) action ShowMenu("save")
          hotspot (824,615,156,60) action ShowMenu("load")
          hotspot (980,615,156,60) action QuickSave()
          hotspot (1137,615,156,60) action QuickLoad()
But ShowMenu cannot add transition, and evenif I use, for example, "show("history", moveintop)", it doesn't work.

Then I tried to add transition at the background, like

Code: Select all

    style_prefix "main_menu"
    
style main_menu_frame:
    xsize 420
    yfill True
    background "gui/overlay/main_menu.png"
    
But still, I can't add any transition effect to it. So exactly how should I achieve my goal?

Not a English native speaker, I apologise if there's some mistake(;´༎ຶД༎ຶ`)
Gratitude to all your reply!

Re: how to show screen with transition?

Posted: Fri Dec 29, 2017 1:52 pm
by Smaymay
Hey, I had the same issue I think. I was trying to make ALL my screens appear with a dissolve transition. In your options.rpy you have a section titled "TRANSITIONS". I basically gave everything a dissolve transition. Good luck!

Code: Select all

     ## Used when entering the game menu from the game.
    config.enter_transition = dissolve

    ## Used when exiting the game menu to the game.
    config.exit_transition = dissolve

    ## Used between screens of the game menu.
    config.intra_transition = dissolve

    ## Used when entering the game menu from the main menu.
    config.main_game_transition = dissolve

    ## Used when returning to the main menu from the game.
    config.game_main_transition = dissolve

    ## Used when entering the main menu from the splashscreen.
    config.end_splash_transition = dissolve

    ## Used when entering the main menu after the game has ended.
    config.end_game_transition = dissolve

    ## Used when a game is loaded.
    config.after_load_transition = dissolve

    ## Used when the window is shown.
    config.window_show_transition = dissolve

    ## Used when the window is hidden.
    config.window_hide_transition = dissolve

    ## Used when showing NVL-mode text directly after ADV-mode text.
    config.adv_nvl_transition = dissolve

    ## Used when showing ADV-mode text directly after NVL-mode text.
    config.nvl_adv_transition = dissolve

    ## Used when yesno is shown.
    config.enter_yesno_transition = dissolve

    ## Used when the yesno is hidden.
    config.exit_yesno_transition = dissolve