How do I get enemies to jump away after being attacked?

Get help using Construct 2

Post » Fri Apr 22, 2016 12:00 pm

Message: MinkDingus can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I'm making a simple Zelda clone to get to know Construct 2 a little better. I would like the "Wolf" sprite will move towards the player and then attack. My mechanics are very simple since I am a total noob so the sprite's attack is just running into the player. I would like to create a bounce effect so that if the "Player" hits the "Wolf'' it will jump or bounce away. Take a look at my event sheet...

http://i.imgur.com/vXJobpG.png

As you can see I'm trying to move the "Wolf" in different patterns by using the local number "Wolf1Trigger"

Line 15 - When the player gets near the Wolf1Trigger moves to one and the wolf begins moving toward them.

Line 17- the Wolf is hit by the weapon Knife and the Wolf1Trigger moves to 2

Line 18- The Wolf should turn away and rapidly move for just a second only to have the Line 21- Wolf1Trigger move back to one and the speed reduce, and angle return toward the player.

What actually happens is that the Wolf does activate on proximity and move toward the player- but for some reason when the wolf is hit the speed goes up and stays up- the angle does not reverse and the speed does not seem to reduce after the 0.3 seconds.

Whats all the more of a pain is that I had this bounce off system working great a week ago but it just stopped for some crazy reason that I'm sure is my doing but I just don't know how.

Thanks so much for reading this through. Any help you can give is appreciated. Have an awesome day.

MD
B
9
S
1
Posts: 13
Reputation: 508

Post » Fri Apr 22, 2016 1:12 pm

This might not work, try Bounce off object when the player hits it.
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
25
S
10
G
7
Posts: 91
Reputation: 6,395

Post » Fri Apr 22, 2016 1:20 pm

Potato23 wrote:This might not work, try Bounce off object when the player hits it.



Thanks Potatoe23, but the bounce command was my first attempt. It gives a little but just not enough for what I'm doing here and there seems to be no way to adjust it.
B
9
S
1
Posts: 13
Reputation: 508

Post » Fri Apr 22, 2016 1:48 pm

If you change the speed does it bounce back farther? If it doesn't ok
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
25
S
10
G
7
Posts: 91
Reputation: 6,395


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests