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.
question about mpeg1
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.
-
- Veteran
- Posts: 378
- Joined: Mon Sep 03, 2007 1:37 pm
- Projects: Aquae ~CCW~, Consonance
- Contact:
question about mpeg1
ARC I - Summer Lights:
ARC II - Ocean Tide:
ARC II - Ocean Tide:
Re: question about mpeg1
Details are on the wiki, the code should be something like this:
Code: Select all
label splashscreen:
$ renpy.movie_cutscene("opening.mpg")
return
-
- Veteran
- Posts: 378
- Joined: Mon Sep 03, 2007 1:37 pm
- Projects: Aquae ~CCW~, Consonance
- Contact:
-
- Regular
- Posts: 152
- Joined: Sun Jun 01, 2008 6:12 pm
- Contact:
Re: question about mpeg1
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
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
-
- Veteran
- Posts: 284
- Joined: Fri Dec 28, 2007 5:47 am
- Location: Where the Dragons rule!
- Contact:
Re: question about mpeg1
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):
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.
Code: Select all
label splashscreen:
if not renpy.seen_label("start"):
$ renpy.movie_cutscene("opening.mpg")
return
Angels of paradise, angels of sacrifice
Please let me be under your wings...
Please let me be under your wings...
-
- Regular
- Posts: 152
- Joined: Sun Jun 01, 2008 6:12 pm
- Contact:
Re: question about mpeg1
Oh, okay! Thankyou :3
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot]