Animated Texture Tile collision for each frame

Godot Version

4.2.2.stable

Question

Hey I, i got a texture that needs to have 1 safe frame and 1 frame that can kill you. im using it in my tilemap and i haven’t figured out how do i give it another collision for the other frame

thx before hand

I’m afraid this is currently not possible. All frames of an animation tile share the same collision shape. As a workaround, you could run a script that detects those tiles in your tilemap and spawns an Area2D on top of them, giving you full control of the collision shape (since now the TileMap only provides the visuals).