Page 1 of 1
Create two splash screens
Posted: Sun Aug 09, 2020 7:29 pm
by Vib Tardius
Hello, I would like to start my game with two splash screens. For example, one saying "this game is under a XXX license". And the second one saying "Special thanks to XXX".
(...)
I've searched where is the "skip the splashscreen" option, but I didn't find it.
Thank you for your help.
Edit :
Sorry, I confused splashscreen one and two in my original post.
Here is the corrected version :
My code :
Code: Select all
# The "splashscreen" label automatically plays before the main menu.
label splashscreen :
scene black_screen
show splashscreen1 with dissolve
pause 12.0
hide splashscreen1 with dissolve
show splashscreen2 with dissolve
pause 6.0
hide splashscreen2 with dissolve
return
Expected result :
When the player clicks while splashscreen1 is displayed, it skips the "pause 12.0" and shows splashscreen2.
Result :
When the player clicks while splashscreen1 is displayed, it skips the rest of the splashscreen and goes to the main menu.
Re: Create two splash screens
Posted: Sun Aug 09, 2020 11:07 pm
by MisterHarold
try this
Code: Select all
label splashscreen :
scene black_screen
show splashscreen2 with dissolve
pause 6.0
hide splashscreen2 with dissolve
return #remove this if it doesn't work
label splashscreen2:
show splashscreen1 with dissolve
pause 12.0
hide splashscreen1 with dissolve
return
Re: Create two splash screens
Posted: Mon Aug 10, 2020 3:23 am
by hell_oh_world
I'm not sure if I understand but you said...
When the player clicks while splashscreen1 is displayed, it skips the rest of the splashscreen and goes to the main menu.
well... it will definitely because the placement of your splashscreen images says it well. you first showed the splashscreen 2 then the splashscreen 1 appears, so it's expected that if you'll click while the splashscreen 1 is showing to go to the main menu since there are no codes left below the splashscreen 1 if that makes sense.
so it should be something like...
Code: Select all
label splashscreen:
scene black
show splashscreen_image_1 with dissolve
pause 5.0
hide splashscreen_image_1 with dissolve
show splashscreen_image_2 with dissolve
pause 5.0
hide splashscreen_image_2 with dissolve
return
if the splashscreens have pattern like they just all dissolve then probably create a helper label and call it, so you can reuse and reuse it if you have more things to show while in splashscreen...
Code: Select all
label splashscreen:
scene black
call splashscreen_generator("splashscreen1", 5.0)
call splashscreen_generator("splashscreen2", 7.0)
return
label splashscreen_generator(the_image, duration=5.0):
show expression the_image
pause 5.0
hide expression the_image
return
Re: Create two splash screens
Posted: Mon Aug 10, 2020 4:20 pm
by Vib Tardius
Sorry, I confused splashscreen1 and splashscreen2 in my original post (see my edit).
I tried your solutions but I still have the same problem : when the player clicks while the first splashscreen is displayed, it skips the second splashscreen.
if the splashscreens have pattern like they just all dissolve then probably create a helper label and call it
Thanks, it will improve my code.
Re: Create two splash screens
Posted: Mon Aug 10, 2020 4:26 pm
by Vib Tardius
As a temporary solution, I may put splashscreen1 before the main menu (after "label splashscreen") and splashscreen2 after starting a new game (after "label start").
Re: Create two splash screens
Posted: Thu Aug 13, 2020 9:21 am
by IrinaLazareva
Vib Tardius wrote: ↑Sun Aug 09, 2020 7:29 pm
My code :
Code: Select all
# The "splashscreen" label automatically plays before the main menu.
label splashscreen :
scene black_screen
show splashscreen1 with dissolve
pause 12.0
hide splashscreen1 with dissolve
show splashscreen2 with dissolve
pause 6.0
hide splashscreen2 with dissolve
return
Expected result :
When the player clicks while splashscreen1 is displayed, it skips the "pause 12.0" and shows splashscreen2.
use
$ renpy.pause() instead of
pause
Code: Select all
# The "splashscreen" label automatically plays before the main menu.
label splashscreen :
scene black_screen
show splashscreen1 with dissolve
$ renpy.pause(12.0)
hide splashscreen1 with dissolve
show splashscreen2 with dissolve
$ renpy.pause(6.0)
hide splashscreen2 with dissolve
return
https://www.renpy.org/doc/html/other.html#renpy.pause
Re: Create two splash screens
Posted: Thu Sep 03, 2020 3:54 am
by Vib Tardius
IrinaLazareva wrote: ↑Thu Aug 13, 2020 9:21 am
use
$ renpy.pause() instead of
pause
Code: Select all
# The "splashscreen" label automatically plays before the main menu.
label splashscreen :
scene black_screen
show splashscreen1 with dissolve
$ renpy.pause(12.0)
hide splashscreen1 with dissolve
show splashscreen2 with dissolve
$ renpy.pause(6.0)
hide splashscreen2 with dissolve
return
https://www.renpy.org/doc/html/other.html#renpy.pause
Thank you for your answer ! It worked

, and sorry for taking so much time to answer.