Page 1 of 1

video never stops playing?

Posted: Tue Feb 05, 2019 1:04 pm
by lunakohl
hello, first time Renpy user here! I'm making a game with a lot of fake loading screens and consequently need to code in a lot of videos

I've been using:

image movie = Movie(size=(1920,1080), xpos=0, ypos=0, xanchor=0, yanchor=0)

(because I want it to take up the entire screen)

and

show movie
play movie "nj distant.ogv"
hide movie

but hide movie doesn't seem to do anything, and neither does pause 3.0/7.0/any number i put in

how would i loop the video to play for only a certain amount of time? alternatively, how could i make it so that the video stops and/or leaves if you click?

Re: video never stops playing?

Posted: Wed Feb 06, 2019 3:11 am
by Equil
the renpy documentation should be able to help you out
https://www.renpy.org/doc/html/movie.html

Here's an example of defining a movie sprite:

image eileen movie = Movie(play="eileen_movie.webm", mask="eileen_mask.webm")
The movie sprite can be shown using the show statement, which automatically starts the movie playing. It will be automatically stopped when the displayable is hidden.

show eileen movie

e "I'm feeling quite animated today."

hide eileen

e "But there's no point on wasting energy when I'm not around."

make sure you have the indentation right as well, hope this helps

Re: video never stops playing?

Posted: Sun Feb 24, 2019 12:57 pm
by lunakohl
Yeah, that was very helpful. Thank you very much!