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.
Looping a movie until user stops it.
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.
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.
-
Darksoul1978
- Newbie
- Posts: 5
- Joined: Fri Mar 13, 2020 5:58 am
- Contact:
Re: Looping a movie until user stops it.
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
https://www.renpy.org/doc/html/movie.ht ... ie-sprites
Re: Looping a movie until user stops it.
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"
Who is online
Users browsing this forum: No registered users