Video will not stop

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
GlassHorse
Regular
Posts: 30
Joined: Mon Jan 08, 2018 12:14 am
Contact:

Video will not stop

#1 Post by GlassHorse »

Here is what I have

$ renpy.movie_cutscene("On_Your_Mark.webm")

stop movie

$ renpy.pause(2.0, hard='True')
I added that part just for a a buffer from movie back to game.

It'll play once and then would repeat itself after clicking out of it. I tried multiple things on the movie section of ren py's manual but nothing works. I think I'm just over looking a basic part

thanks again guys

User avatar
auger
Newbie
Posts: 9
Joined: Tue Oct 16, 2018 2:48 am
Projects: Unnamed CYA Project
Contact:

Re: Video will not stop

#2 Post by auger »

Hello there. I don't use movies, so my help will be less useful than a movie-master, but I think I can help you out.

First off, your currently used example should end/stop looping after it's finished, or a key is pressed.
Do you have some simple text to after it? For now, let's try this.
Let's try the following code.

Code: Select all

 $ renpy.movie_cutscene("On_Your_Mark.webm")
 e "Ah, it's the tutorial .webm file!"
 e "Sometimes, you can't beat the classics."
Did it go straight to Eileen, assuming you've defined her? Great, problem solved.
If not, let's try this. First, add this to your images.

Code: Select all

image testmovie = Movie(play="On_Your_Mark.webm", loop=False)
Now, let's make a scene again.

Code: Select all

e "This is an example of dialogue."
e "Now, let's show our movie!"
show testmovie
e "Well, that wraps that up!"
Even if the first 'solution' helps you out, if you're planning to use a file more than once, defining it can be a lot of help. Let me know if this doesn't work for you.
Good luck!
Life is short; be kind.

Post Reply

Who is online

Users browsing this forum: Alex