Looking to get proper player kickback when taking damage. I've got the flash to work properly. I just want the player to pop up in the air about 20-30 pixels. Thought I had a good solution until I got hit by an enemy bullet near a ceiling and it pushed me through, ignoring the collision.
GIF of issue in action.
Code. That highlighted bit is what is wrong. I know it's wrong. What can I replace it with?