How do I make enemies get hit with recoil?

0 favourites
  • 4 posts
From the Asset Store
Pixel Enemies for SHMUP consists of 45 enemy ship sprites to be used in your game.
  • Sounds simple, but I just can't figure it out.

    My character is a guy with a sword. I have all the hit detection stuff worked out already. The thing is, it's immpossible to play if I don't do this. Every time my sword guy attacks the enemy, I want it to fly a couple of pixels away before walking again. How could I make that happen? Thank you for your time

  • You should check the tutorial for the platformer, it has something similar to what you are doing, when player hits enemy, player bounces to the opposite direction, now you can change your direction based on your events to whenever you want, the tutorial is simple and very helpful.

  • You should check the tutorial for the platformer, it has something similar to what you are doing, when player hits enemy, player bounces to the opposite direction, now you can change your direction based on your events to whenever you want, the tutorial is simple and very helpful.

    Oh cool! I never needed to use that thing where the player hits the enemy from above, so I never read that part of the tutorial. It really was helpful, thanks for directing me ^_^ I also made the enemies flash and lose their colissions while they do, so if you get lucky you can make the enemies fall of the screen. It looks so cool!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Sweet im glad it worked you are welcome, These small details are what makes your work come to life. Yes you can make a dodge ability and other similar skills in that way, best of luck ;o)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)