Hi, Im trying to make a 2D side scroller game, I have movement mapped out nicely everything else is working properly but The spike traps I have wont kill the player, It bring his health bar to zero then he is still alive… idk what to do. Here is a picture of the trap blueprint
You’ll need to add a function to call when you kill the player. If HP <= 0, call that function. It should handle the player’s death animation, physics takeover, as well as anything dealing with the camera/hud, death sounds, and playercontroller.
Hey thanks for answering fast, so I got it to work somewhat… When I walk into the spike it kills him and plays the death animation, but when I jump in the spike it just constantly plays the running animation but its as if he is dead, you cant move or anything so idk whats wrong there