Attack Animation Help

Godot Version

4.6.1

Question

I am making a Tower Defense game and I have reached the part where I need some animations for the attacks. Now I will have some lets say exploding attacks but I will have to have some continuous attacks as well like a laser and poison clouds, fire cloud which damage the enemies in a field.

This is my FieldCone and everything that enters the range will get damaged by the tower. This works so far but my question is can I somehow add an animation which will cover the whole cone area like this and what would be the best way to add it?
Also one really important thing is whether to use an animatedsprite animation or a particle effect.

For a 2D tower defense game if a player builds a lot of these towers what is the best course of action for getting this to work. I tried looking around but I haven’t found anything concrete for this situation. I also tried creating some Particle effects and they look pretty good to be honest but would that impact the game performance a lot not just with the fire towers but with the laser and poison ones as well.

Thank You for your time, and any help and advice are appreciated.

1 Like

I would not worry about the performance impact of GPU particle systems
they are pretty fast

Otherwise you can try making a big sprite that plays an animation on the cone you have

I will then try to create something with the particles since I tested it out and it looked pretty good but I haven’t tried to apply it due to thinking it would impact the game a lot. Thank You.

1 Like

Depends on the effect. Particles are good for some type of effects but for others you may get better looking and more economical results by running a shader on a polygon or a 2d mesh.

If your game has very big maps with loads of towers / stuff spitting particles, you can dynamically change the number of particles as the sources increase.