Page 1 of 1

question about mpeg1

Posted: Thu Jun 05, 2008 12:43 am
by Sakurazaki
Let's say that I want to use a mpeg1 video file for my intro right before the menu appears, how would I go about doing that?

I'd have to use $ renpy.movie_cutscene("opening.mpg") right? but where should I put it? I also want it to skip over it when the user clicks or something.

Re: question about mpeg1

Posted: Thu Jun 05, 2008 3:54 am
by denzil
Details are on the wiki, the code should be something like this:

Code: Select all

label splashscreen:
    $ renpy.movie_cutscene("opening.mpg")
    return

Re: question about mpeg1

Posted: Fri Jun 06, 2008 12:54 am
by Sakurazaki
:o I shall try that out.

Re: question about mpeg1

Posted: Mon Jun 09, 2008 7:18 pm
by AngelicCarrot
I have a question like this too, I'm just confused if we had the same problem ^^;

If I use that code, can I put it in so it comes on BEFORE the title screen? Or if I can't do that, will the video always play before starting the game even when you're starting from a saved place? :O

Re: question about mpeg1

Posted: Tue Jun 10, 2008 3:02 am
by EvilDragon
If you inserted the video with the above code, it will always play before the game starts. If you want to play the video only once, you can make an inquiry if the main label (start) has been viewed (that is, the video will show only if the user hasn't started the game itself):

Code: Select all

label splashscreen:
     if not renpy.seen_label("start"):
         $ renpy.movie_cutscene("opening.mpg")
         return
I think you misunderstood something here. When you put something in "label splashscreen", that is only shown only when opening the game, and not when restarting from within game back to main menu. So, when loading a saved game, splashscreen will not show up.

Re: question about mpeg1

Posted: Tue Jun 10, 2008 8:58 pm
by AngelicCarrot
Oh, okay! Thankyou :3