Page 1 of 1

Looping a movie until user stops it.

Posted: Wed Apr 22, 2020 10:11 am
by Darksoul1978
ok in my game I want a movie to display and loop until it is stopped. this is my current code: $ renpy.movie_cutscene("images/707.ogg")
that plays the movie till it stops and then it reverts to the previous scene. I want the movie to loop until it is stopped and not revert to the previous image.
I tried this code from the ren'py help site and it breaks the game giving a syntax error: renpy.movie_cutscene(filename, delay=None, loops=0, stop_music=True)

Please help.

Re: Looping a movie until user stops it.

Posted: Wed Apr 22, 2020 12:23 pm
by rames44
Instead of using cutscene, define an image as a Movie object, and show it the way you would any other image. Movie objects loop by default.

https://www.renpy.org/doc/html/movie.ht ... ie-sprites

Re: Looping a movie until user stops it.

Posted: Wed Apr 22, 2020 12:38 pm
by GoldBrows
Without getting too complicated, this is what I do to have a movie loop in the background. In particular I use this to show a video of clouds in the sky floating across the screen while characters talk. If you wanted to get more complicated you could create a screen instead and layer things on top of the movie, but for now this will easily do what you want

Code: Select all

image my_movie = Movie(play="video/my_moview.webm")

scene my_movie

"Now the movie is looping in the background"