Enemy jump if attacked

Hi guys!

How can I make that when I attack an enemy he jumps after the attack?

Sorry for my english! Thanks!

Hello @Flauros1 ,
To get more constructive and to the point feedback/help, it helps a lot if you have either code, an image or a gif to describe more what goes wrong and what you are after.

Two general solutions to your problem would be:

  • Update the enemy’s Y position after detecting that the enemy has been hit
  • Play a jumping animation after detecting that the enemy has been hit

Keep me posted on your progress!