#How can I make a FSM for blocking

1 messages · Page 1 of 1 (latest)

exotic quiver
#

I dont know how to make that when the player is holding f (the transition activates) the animation of blocking starts playing, he can block the attacks in the way that he is looking, not the attacks that are in his back.

wind sky
lean idol
#

Just make a dot product check

#

No need to over-complicate things with extra hitboxes and all that

wind sky
lean idol
#

a dot product is a number between -1 and 1 saying how much 2 vectors are looking in the same direction

#

if you take the dot product and run it through math.acos() you can even get the angle from 0 - 180