Renpy remove all scene images before playing a movie

DoctorPervic

Well-Known Member
Game Developer
Aug 13, 2019
1,075
4,421
So I am looking into a problem I am having, but if you all have any suggestions it is always appreciated to know.
So I have three movies defined in my scenes. They are

image suck2 movie = Movie(play="video/part1/sucking2.webm")
image suck3 movie = Movie(play="video/part1/sucking3.webm")
image suck3a movie = Movie(play="video/part1/sucking3a.webm")


However when I have them played one after the other, in between them renpy shows the last scene image that was displayed

Is there any way on clearing all scene images before I play the animations so renpy displays nothing in-between the movies?

I tried to show a black screen and it is ok, but it kind of make the transitions between the movies a little wierd.

Any help is greatly appreciated
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,583
2,224
One thing to try is to add a property to your movie definition. It displays a single static image while the movie is being loaded.

Usually, you'd use the first frame of your movie, which might cause a bit of a stutter, but at least the screen doesn't flash to whatever was there before.

Python:
image suck2 movie = Movie(play="video/part1/sucking2.webm" start_image="sucking2.webp")
For example.

The other way I've used before is to add a transition to your movie display.

Python:
    scene black
    scene suck2 with dissolve
    scene suck3 with dissolve
    scene suck4 with dissolve
Removes that brief flash to the previous image/movie completely.

Just pick whichever you prefer, I guess.
 
  • Like
Reactions: Pixieblink