How do I implement a damage system with knockback

Get help using Construct 2

Post » Mon Nov 03, 2014 7:08 pm

Trying to get it so every attack raises a players damage when they are hit. The higher the damage the farther back and up the player will be pushed when hit.
B
7
S
1
Posts: 28
Reputation: 459

Post » Mon Nov 03, 2014 7:47 pm

You will need an instance variable that stores the damage (power) build-up and then whatever method you use to knock-back/up (8-way, pixel based, custom movement, bullet behavior, platform behavior, physics, etc, etc) you would use the damage (power) instance variable in the condition for various strengths...

Add the physics behavior and apply a one time force based on instance variable level with X,Y vectors should do the trick.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Mon Nov 03, 2014 9:21 pm

I'm using platform plus and physics seems to act a little funky with it.
B
7
S
1
Posts: 28
Reputation: 459


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests