Tilemap - Animated Tile - Ping Pong animation instead of loop

Basically i want my animation tile to play the animation in ping pong order:
f1
f2
f3
f2
f1
f2
f3
etc

instead now its looping:
f1
f2
f3
f1
f2
f3
etc

There is no options in the animated tile at all for this unfortunately.

I know, I can add the frames manually in reverse and thats a workaround, but i have dozens of these tiles with 10s of frames each so its a cumbersome workaround especially since this should just be a built in feature…

I don’t really know what you are animating, but if it’s an object moving from left to right, you can try working with a Sin() or Cos(). And adding that to it’s position (x or Y, or both for a circle!)

Anyway, you could make it scripted too:

Assign a variable, make it go ++ until it hits your last sprite, multiply it by -1, then check if it’s 0, multiply by -1 again.

1 Like