Platformer Knockback not working

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.

You’ve effectively repeated the code. I’d suggest tot following changes:

  1. Delete the horizontally flipped check
  2. Move the trigger once to the parent event
  3. Delete the second collision event block.

Also, you could create an object group, say called “EnemyGroup”, add the 3 enemy objects to that and then just do one collision check with EnemyGroup.

I did something else before and forgot to delete the second part, thanks.