ID:2385345
 
(See the best response by Lummox JR.)

I am trying to animate various filters on an object at the same time, but I can't currently achieve this.

I have tried this:

filters += filter(type="motion_blur")
var/F1 = filters[filters.len]
filters += filter(type="wave")
var/F2 = filters[filters.len]

animate(F1, x=4, y=4, time=3, loop = -1)
animate(x=0, y=0, time=3, loop = -1)
animate(F2, x=2, y=2, time=3, loop = -1)
animate(x=0, y=0, time=3, loop = -1)

What do I need to change to make this work? It currently waits until the first animate is over to start F2 animation, while I'm actually trying to make them both get animated at the same time. I tried using flags = ANIMATION_PARALLEL, but in that case it gets worse as the second & fourth animation are never triggered the way I want.
Best response
You definitely need to use ANIMATION_PARALLEL in the third call.

The loop argument is unnecessary in the second and fourth calls, since it only has relevance to the beginning of an animation.

Your wave filter BTW won't do anything, because it has no size parameter. The x and y coordinates specify the direction and period of the wave, but for distortion you need to include a size. The size currently defaults to 0, although I'll change it to 1 for the next release (512.1439).