Page 1 of 1

Add a splash/loading screen in between scenes

Posted: Thu Dec 14, 2023 6:35 pm
by Blackravebow
Hey there I’m new. What I’m trying to do is add a splash screen or fake loading screen that last for a few seconds before moving onto the next scene.
If you can show me how it’s supposed to be written out, I would appreciate it.
Again, it’s not meant for when you first start the game it’s used as a transition throughout different scenes.

Example:
“ let’s go to the store”

*Fake loading screen with art comes on the screen for a few seconds then leaves*

“ we finally made it to the store”

Re: Add a splash/loading screen in between scenes

Posted: Thu Dec 14, 2023 10:26 pm
by Ek_Dahl
Hi there i did it like this on mine :

the loading file :

Code: Select all

define random = renpy.random.randint(0, 12)
image loading_screen = "load/[random].png"
image loading_message = "load/loading_message.png"
transform resize :
    zoom 0.5

label loading_battle :

    #play music "music/powerfull.mp3" volume 0.5
    $ random = renpy.random.randint(0, 12)
    show loading_screen at resize with Dissolve(1.0)
    show loading_message with Dissolve(1.0)

    pause one_second_pause


    return
and in wherever you want to call it :

Code: Select all

    menu :

        "I'm awake" :
            jump awake
        "ZzzZZzzzZZZ...." :
            jump sleeping
        "Go battle" : 
            hide scene_main_01_01 with Dissolve(1.0)
            call loading_battle
            jump everythings_end
            
            

Re: Add a splash/loading screen in between scenes

Posted: Thu Dec 14, 2023 10:34 pm
by Donmai
I showed cards between scenes some years ago in my first work, Toire No Hanako. For each card, I defined a label I could call when needed. Here is a pseudo-code for one of the cards:

Code: Select all

label name_your_label:
    hide the dialogue window
    stop any music that is playing
    stop any ambient sound
    play any sound you want
    show any image you want with some fancy transition you've defined previously
    give some time for the image to be seen
    play another optional sound
    optionally show a second image, etc.
    return to the game
Example code for one of the cards I used:

Code: Select all

label time_passes:
    window hide
    stop music
    stop ambient
    play sound whoosh
    scene white with white_flash
    play sound time_passes
    scene logo with clockwipe
    pause 0.5
    play sound time_passes
    scene red with clockwipe
    play sound whoosh
    return
Any time I wanted to show that card between scenes I simply put this line between them:

Code: Select all

call time_passes