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.
so I followed a tutorial on how to display the movie, but it would leave. it just keeps playing whilst my script in the background keeps going. how do i play it and when it finishes it leaves.
# movie
image movie = Movie(size=(1280, 720), xpos=100, ypos=100, xanchor=100, yanchor=100)
play movie "day_2.ogv"
k "you have 28 days left"
hide movie with fade
that is my line of code for the movie if anyone can help that would be great because I searched everywhere, and it's just too complicated for me to understand
Another thing to look at - you started the movie with "play", but then tried to hide it with "hide". "Play" and "hide" don't really go together as a pair.
An alternate approach is to give a full definition of the movie "image" including the file name, at which point you can just "show" and "hide" the movie.
Basically, if you create a complete definition of a Movie as an image, you can then do anything with it that you could do with any other image. So you could also do