So Ive been surfing around and trying hundreds methods, anything that came up to my mind but I simply can not make my attacking animation collide to enemy.
I have the walking animations and fighting animations. I need only fighting animations(fists) to count as attacks and subtract the enemy health.
Develop games in your browser. Powerful, performant & highly capable.
You need to check when colliding:
Player collide with enemy
-> Sub-condition:
Is playing animation "Fist"
AND
Animation Frame = X(the frame when player attack with fist)
Cheers
Thank you very much. I will try the next animations I plan to add with this method and see its efficiency.
How ever I managed to do it through adding bullet behavior to invisible objects and trigger on animation finish/end. Works good tho it's a loot more to do.
Once again thank you for your reply.