video never stops playing?

Questions, skill improvement, and respectful critique involving music, sound, and movies.
Post Reply
Message
Author
User avatar
lunakohl
Newbie
Posts: 4
Joined: Tue Feb 05, 2019 12:43 pm
Contact:

video never stops playing?

#1 Post by lunakohl » Tue Feb 05, 2019 1:04 pm

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?
:D

Equil
Newbie
Posts: 18
Joined: Fri Feb 01, 2019 9:44 am
Contact:

Re: video never stops playing?

#2 Post by Equil » Wed Feb 06, 2019 3:11 am

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

User avatar
lunakohl
Newbie
Posts: 4
Joined: Tue Feb 05, 2019 12:43 pm
Contact:

Re: video never stops playing?

#3 Post by lunakohl » Sun Feb 24, 2019 12:57 pm

Yeah, that was very helpful. Thank you very much!
:D

Post Reply

Who is online

Users browsing this forum: No registered users