Page 1 of 1

Splashscreen Problem

Posted: Thu Apr 24, 2008 6:54 am
by Valkyrie
Hi,

I have a problem with splashscreen.......how do I show a splashscreen before showing a menu?
So that when I open the game, it will show the splashscreen THEN it goes to the main menu....

I need about 4 splashscreens shown before the main menu....pls help >_<!!!

I looked at the cookbook, and it said something about "Quick Splashscreen while Renpy is Loading"
But that couldn't do 4 splashscreens and you couldn't put transitions on it.

This is an example of what I want::

#when open game#

(splashscreen) "Example 2008......"
(splashscreen) "Created with Renpy Engine..."
(splashscreen) "Example!"

#now goes to main menu#

Thanks guys~

Re: Splashscreen Problem

Posted: Thu Apr 24, 2008 8:39 am
by denzil
I think what you want is:

Code: Select all

label splashscreen:
    # normal renpy code follows
    # for example:
    scene image
    with Pause(2.0)
    return
Anything after label splashscreen will be shown before entering the main menu. Dream Chasers uses this for example (you can find the code in splash.rpy).
And there is also some documentation in the wiki.

Re: Splashscreen Problem

Posted: Thu Apr 24, 2008 12:19 pm
by chronoluminaire
This example from the wiki page denzil linked might be what you want:

Code: Select all

label splashscreen:
    $ renpy.pause(0)
    scene black
    show text "American Bishoujo Presents..."
    with dissolve
    with Pause(1.0)

    hide text
    with dissolve

    return

Re: Splashscreen Problem

Posted: Thu Apr 24, 2008 3:12 pm
by Valkyrie
Yay! This is exactly what I need ^_^