(Solved)Splash screen not working properly-

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
TheWolfyArtist
Newbie
Posts: 6
Joined: Sat Jun 30, 2018 1:36 am
Contact:

(Solved)Splash screen not working properly-

#1 Post by TheWolfyArtist »

NOTE:
I fixed it by turning everything into a png


I have my game to start and have the logo fade in. when the logo for the game fades out the splash text is supposed to appear, however, it doesn't work for one reason.
heres what the code looks like

Code: Select all

init python:
    default_smessage = "Stuff splash message and other stuff"
    splash_messages = [
    "Blah blah the ones here are kinda spoilers so I replaced them",
    "Something",
    "Something"
    ]


image white = "#ffffff"

image intro:
    truecenter
    "white"
    0.5
    "splash" with Dissolve(0.5, alpha=True)
    2.5
    "white" with Dissolve(0.5, alpha=True)
    0.5

label splashscreen:
    show white
    $ Splashed = default_smessage
    if persistent.completed and renpy.random.randint(0,3) == 0:
        $ Splashed = renpy.random.choice(splash_messages)
##  $ config.main_menu_music =
##  $ renpy.music.play(config.main_menu_music)

    show intro with Dissolve(0.3, alpha=True)
    pause 2.0
    hide intro with Dissolve(0.3, alpha=True)
    show text "[Splashed]." at center with Dissolve(0.5, alpha=True)
    pause 3.0
    hide text with Dissolve(0.5, alpha=True)
    $ config.allow_skipping = True
    return
Last edited by TheWolfyArtist on Sun Jul 01, 2018 7:07 am, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Splash screen not working properly-

#2 Post by Alex »

Try to replace

Code: Select all

pause 2.0
with

Code: Select all

$ renpy.pause(2.0)
https://www.renpy.org/doc/html/other.html#renpy.pause

TheWolfyArtist
Newbie
Posts: 6
Joined: Sat Jun 30, 2018 1:36 am
Contact:

Re: Splash screen not working properly-

#3 Post by TheWolfyArtist »

It still doesn't show up for some reason- TTuTT

Post Reply

Who is online

Users browsing this forum: Google [Bot]