During script jump, quick menu and game screen fade-in order problem.

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
yoyuchi
Regular
Posts: 58
Joined: Sat Jul 09, 2022 1:39 pm
Contact:

During script jump, quick menu and game screen fade-in order problem.

#1 Post by yoyuchi » Wed Aug 03, 2022 8:01 am

When scenario script jumps to become a new scenario, can I adjust the order in which the quick menu and screen fade in?
I have used "$show_quick_menu = False" at the end of script and "$show_quick_menu = True" at the beginning of new script.
In that case, when new script was fade-in, game screen came out first and quick menu came out. It was normal.
However, quick menu replaced with image button became a problem, and now $show_quick_menu = False is not being used.
In this case, script jumps(fade out with black), and then quick menu comes out first and the game screen fades in.

Code: Select all

    stop music fadeout 2.0
    stop sound
    stop bgv       
    # $ show_quick_menu = False
    scene black
    with fadehold
    pause 1.0
      
    jump si_01a
This is script A.

Code: Select all

label si_01a:
    scene cg_01 with dissolve
    # $ show_quick_menu = True
    play music "sound/bgm/bgm_004.ogg"
This is script B.
When jumping from A to B, there is a problem between "quick menu" and "game screen" fade-in order.

I want to do it in the order of fade-in, game screen first and then quick menu, without using $ show_quick_menu = False.
Where in script should I add or modify?

Post Reply

Who is online

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