I have a tile map sprite of a one-way platform. And I want to have two animations: the platform is opening(you can pass it from both sides) and closing(you can pass it from one side).
I have heard that you should do it with tile maps.
But the animations always loop, I can’t change the animations of a tile. I have heard that you can do it buy changing the tile.
How ever, I don’t how to do it, I will also need to track the positions of the tiles.
How can I do it?