So I have a player sprite where I stored animations.
Player hit box which does collisions and carries behaviours (platform, scroll to)
And now I have 4 different attacks, so I was thinking how should i make hit boxes for them.
What I have in mind to do is something like attack1 is playing, on frame3/ spawn attack1 hit box
So what I want to know is if there is a better way to do this because it seems kinda clumsy.
Develop games in your browser. Powerful, performant & highly capable.
You can just change the frame of the hitbox sprite, rather than spawning a different one.
Oh yeah didn't thinks of that *slowpoke LoL, Thanks I'll try that