I am working on a platformer fighting game, I would like to implement attack entities that check for collisions with enemies only when the attack button is pressed as mentioned above - I’m wondering if it would be more efficient to have a single attack entity for my player and just change the attack entity’s hitbox for different attacks, OR have a separate entity for each attack?
Any opinions or experiences?
Thanks,