I've shown a couple of images on the screen. I'd like to manipulate them with ATL transforms, so they appear to be interacting with each other. However, I need each of the two images to go through two different animation transforms with different lengths. So my code starts with the following:
Code: Select all
show image1 at first_anim_for_image1
show image2 at first_anim_for_image2
But then, one of the images needs to switch to a different animation, while the other image is still playing its first one. I achieve it like this:
Code: Select all
show image1 at first_anim_for_image1
show image2 at first_anim_for_image2
$ renpy.pause(lenght_of_the_first_anim_for_image2)
show image2 at second_anim_for_image2
There's a noticeable delay in starting the second animation for image2 and by the point it actually starts, the timings I have arranged for the two images have gone out of sync.
I've attached a small demo project illustrating this. The delay is very small and it may not be possible to avoid it, it may be the result of a bug in Ren'Py or it may just be a problem with the particular way I'm doing things. Whichever the case, I'd very much like to know.
Oh, and in case it helps, the reason I've cut up the animations for each image in two is because I need one of the images to be on top of the other for the first part and the other way around for the second part. If there's a way to change an image's zorder while it's being animated, that would help, too!