Move back when hitted

Get help using Construct 2

Post » Sun Aug 04, 2013 9:46 pm

Hi,

I want to know how can i make an enemy "move back" when hitted with a sword, as in a Zelda game. I am currently applying impulse at angle, but the enemy takes too long to stop, even if i set friction or linear damping to 1. I have also tried to set it into inmovable after half a second, but this looks "unnatural". I need it to go back fast so it seems as a powerful hit, but stop quickly and smoothly at a short distance. How can i achieve this effect?

Kinds regards
B
6
S
2
Posts: 30
Reputation: 1,127

Post » Sun Aug 04, 2013 10:14 pm

Is a platform game?? An 8 direction game?? Whay are you using physics?
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Mon Aug 05, 2013 12:05 am

Its an 8 direction game (zelda like). I am using physics since i though it was an easy way to achieve the pull back effect.

B
6
S
2
Posts: 30
Reputation: 1,127

Post » Mon Aug 05, 2013 1:13 am

Someone asked the same as you here:

http://www.scirra.com/forum/how-to-make-a-simple-sprite-knockback-in-8-dir_topic53242.html

RojoHound got the answer.
B
10
S
4
Posts: 133
Reputation: 1,543


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 58 guests