Splash Screen

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
ryandavison
Newbie
Posts: 2
Joined: Thu Jun 02, 2016 12:05 am
Contact:

Splash Screen

#1 Post by ryandavison »

Ok, so I'm new here, so I don't know if I'm putting this in the right place.

Anyway, I'm trying to put a video as a splash screen, it works but the problem is after
playing the video it doesn't automatically go to the main menu like it's suppose to,
any help would be appreciated.

And if it help, here's the code:

Code: Select all

label splashscreen:

    $ renpy.movie_cutscene('opening.webm')
    
    return
Also this code is at the top of the "script.rpy" file

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Splash Screen

#2 Post by SundownKid »

That seems like it should work fine.

Maybe the movie is just incompatible or something. I would convert it to OGV and see what hapens.

ryandavison
Newbie
Posts: 2
Joined: Thu Jun 02, 2016 12:05 am
Contact:

Re: Splash Screen

#3 Post by ryandavison »

It only seems to continue past the video when I press the mouse, is there a way to make it automatic

User avatar
ChronoWorkS
Newbie
Posts: 16
Joined: Mon Dec 28, 2015 4:58 am
Contact:

Re: Splash Screen

#4 Post by ChronoWorkS »

Try putting the line of code at the end of the Script
Image

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Splash Screen

#5 Post by gas »

renpy.movie_cutscene(filename, delay=None, loops=0, stop_music=True)
This displays an MPEG-1 cutscene for the specified number of seconds. The user can click to interrupt the cutscene. Overlays and Underlays are disabled for the duration of the cutscene.

filename
The name of a file containing an MPEG-1 movie.
delay
The number of seconds to wait before ending the cutscene. Normally the length of the movie, in seconds. If None, then the delay is computed from the number of loops (that is, loops + 1) * the length of the movie. If -1, we wait until the user clicks.

In given situations, the codec can't give the exact lenght of the movie it contain, so it's best practice to specify it.
loops
The number of extra loops to show, -1 to loop forever.
Returns True if the movie was terminated by the user, or False if the given delay elapsed uninterrupted. <== that' mean even in the worst case you can check with an IF conditional and go forward.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Post Reply

Who is online

Users browsing this forum: No registered users