Play through a movie file only once

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
ReAnimator
Regular
Posts: 64
Joined: Mon Dec 16, 2013 1:00 pm
Contact:

Play through a movie file only once

#1 Post by ReAnimator » Wed Aug 31, 2016 5:00 am

Hi,
I'd like to use Ren'Py's movie sprites instead of ATL consists of hundreds of images.
I can play loop movie without problem but I cannot manage to play transitional movie as I intended.
Say, there's shot A and shot B. I want transitional movie in between.
How do you do that? I tried pause function but it doesn't work quite well. Ideally there's a method that plays through a movie only once. Is this possible? Sample attached.
Attachments
Test.rar
(392.55 KiB) Downloaded 10 times

User avatar
Lezalith
Regular
Posts: 82
Joined: Mon Dec 21, 2015 6:45 pm
Contact:

Re: Play through a movie file only once

#2 Post by Lezalith » Wed Aug 31, 2016 5:16 am

This could help you... https://www.renpy.org/doc/html/movie.html

Especially this part? Sounds like something you need.
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.

Code: Select all

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."

ReAnimator
Regular
Posts: 64
Joined: Mon Dec 16, 2013 1:00 pm
Contact:

Re: Play through a movie file only once

#3 Post by ReAnimator » Wed Aug 31, 2016 5:29 am

Thanks but... hmm I don't quite follow you...

Post Reply

Who is online

Users browsing this forum: Google [Bot], _ticlock_