How do I fix this problem of after a video in the code ends, it flashes to a previous scene's picture for a sec before moving on to the scene?
The coding looks like this:
scene room
with Dissolve (.5)
#Character speak and a few lines later
image faint = Movie(play="faint.webm", pos=(0, 0), anchor=(0, 0))
show faint
GLI "Remember..."
hide faint
#It flashes to the room scene before going to scene BLK
scene BLK
After video ends, it flashes to a previous scene's picture before going to the next scene.
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.
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: After video ends, it flashes to a previous scene's picture before going to the next scene.
Something I do when I run a cutscene is to change to an all black bg scene first. If there is a small instance of showing the old room before going to the new it will just be a couple of black frames that nobody will even notice.AyoGYURIs wrote: ↑Sat Feb 08, 2020 5:53 am How do I fix this problem of after a video in the code ends, it flashes to a previous scene's picture for a sec before moving on to the scene?
The coding looks like this:
scene room
with Dissolve (.5)
#Character speak and a few lines later
image faint = Movie(play="faint.webm", pos=(0, 0), anchor=(0, 0))
show faint
GLI "Remember..."
hide faint
#It flashes to the room scene before going to scene BLK
scene BLK
I define the black background like this
image bg black = "#000"
and then use it with the cutscene like this
scene bg black
$ renpy.movie_cutscene("movie/Spacetwrl.ogv")
Re: After video ends, it flashes to a previous scene's picture before going to the next scene.
Thank you so much! Definitely more cleaner like this. I'll use it!
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: After video ends, it flashes to a previous scene's picture before going to the next scene.
Or you can do it this way as well
start of the first image of the video
start_image="background105"
End of the video
image="background104"
then put it like this
start of the first image of the video
start_image="background105"
End of the video
image="background104"
Code: Select all
image movie1 = Movie(channel="movie", play="video/yourvideo.webm", start_image="background105", loop=False, image="background104")
Code: Select all
scene movie1
show movie1
Who is online
Users browsing this forum: No registered users