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.
It works, but the problem is that it constantly loops. Is it possible to play it just once and freeze it on the last frame, or put an image on top of it?
Thank you.
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add gui.main_menu_background
add Movie(size=(1920, 1080))
on "show" action Play("movie", "intro.webm")
on "hide" action Stop("movie")
on "replaced" action Stop("movie")
I added those 4 lines to the main_menu screen. Then made a pic of the last frame and set it as main_menu background (inside the giu folder). So the video plays and then you see the image, there's a little flicker, but nothing extreme.
There was a small bug - if you start the game quickly, before the video had finished, the game starts but the vid is still playing on top of it. So I added "stop movie" just after the start label.