My code for this basic knockback is not working. When you touch an enemy it should make the player jump, and this semi-works, just not all of the time.
Enemy 1 acts like a Goomba, from Super Mario.
Enemy 2 goes up and down out of the ground.
Enemy 3 flies and follows the player if they are in a certain distance.
If anyone wants to see the code for the enemies, I will be happy to do so.