How do I make enemies get hit with recoil?

Get help using Construct 2

Post » Wed Mar 26, 2014 5:02 pm

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 :)
B
6
S
1
Posts: 22
Reputation: 600

Post » Wed Mar 26, 2014 6:33 pm

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.
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488

Post » Fri Mar 28, 2014 5:14 pm

Phuzz wrote: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!
B
6
S
1
Posts: 22
Reputation: 600

Post » Sat Mar 29, 2014 4:46 pm

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)
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests