Ren'Py merge two images in an animation phase

Black Ram oss

Black Ram
Game Developer
May 10, 2018
582
1,564
how can I merge two images into one phase of the animation?
I think my need can be understood from my wrong code:
Python:
    image tickling mia liam 3:
        "/Mia/room_Mia/tickling_Liam/3A.png" with Dissolve(0.3, alpha = True) +
        "/Mia/room_Mia/tickling_Liam/3A_homesuit.png" with Dissolve(0.3, alpha = True)
        pause 1.0
        "/Mia/room_Mia/tickling_Liam/3B.png" with Dissolve(0.3, alpha = True) +
        "/Mia/room_Mia/tickling_Liam/3B_homesuit.png" with Dissolve(0.3, alpha = True)
        pause 1.0
        repeat
 
  • Like
Reactions: BlueDick

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,971
16,229
how can I merge two images into one phase of the animation?
One way to do this is by using the displayable. something like :

Code:
image tickling mia liam 3:
    Composite( (WIDTH, HEIGHT),
           (START_X, START_Y), "/Mia/room_Mia/tickling_Liam/3A.png",
           (START_X, START_Y), "/Mia/room_Mia/tickling_Liam/3A_homesuit.png" )
    pause 1.0
    Composite( (WIDTH, HEIGHT),
           (START_X, START_Y), "/Mia/room_Mia/tickling_Liam/3B.png",
           (START_X, START_Y), "/Mia/room_Mia/tickling_Liam/3B_homesuit.png" )
 
  • Like
Reactions: BlueDick