0 Favourites

How do I make enemies get hit with recoil?

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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!

  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,512
DMT2005's avatar
DMT2005
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,835
minhcuong's avatar
minhcuong
Unread hot topic
99 10,152
karshinkoff's avatar
karshinkoff