You are browsing as a guest. Sign up (or log in) to start making projects!

4h 17m 48s logged

Quick hurt animations

Main thing I added was animations for death and injury. I first added knockback when hit. It just takes the player’s scale.x (what i use for flipping the sprite) and multiplies it by 200 to the player velocity, since the scale is either 1 or -1, it changes the direction the player is thrown (in the future i’d like to make the scale the enemies direction, not the players, as if the player is flipped in the wrong direction, it could have knockback in the wrong direction :gulp: (very bad) Theres was already a variable to detect if the player was being hit that was used for testing, so I just implemented that to play the injury animations. i also detected if the players health was zero or below after being hit, and if so it would make the player play the death animation instead of the injury. I have currently unimplemented animations for a before-death injured player, so after they are hit for the last time they will stand for a bit before collapsing.

NEXT STUFF: (hast beeneth narrowed list)

-add enemy knockback (only when injured, lok wierd when die)
-fix player knockback

thank yoh forth coming to my TED talk :yippeee:

0
1

Comments 0

No comments yet. Be the first!