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”
Add a splash/loading screen in between scenes
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.
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.
-
- Newbie
- Posts: 2
- Joined: Thu Dec 14, 2023 6:25 pm
- Contact:
Re: Add a splash/loading screen in between scenes
Hi there i did it like this on mine :
the loading file :
and in wherever you want to call it :
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
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
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Add a splash/loading screen in between scenes
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:
Example code for one of the cards I used:
Any time I wanted to show that card between scenes I simply put this line between them:
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
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
Code: Select all
call time_passes
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: Houseofmine, LuckyT