How do I make player pushback when hit in a enemy

Get help using Construct 2

Post » Mon Jul 25, 2016 4:59 pm

Obs: sorry for my bad english :(

How do I make player platform pushback when hit in a enemy?
I'm trying use gravity, but sounds artificial :(
Last edited by Freuvim on Mon Jul 25, 2016 6:51 pm, edited 2 times in total.
B
4
Posts: 4
Reputation: 208

Post » Mon Jul 25, 2016 6:39 pm

Perhaps you can try using the "Move object at angle" or "Move forward" conditions to simulate it.
B
53
S
24
G
18
Posts: 295
Reputation: 13,115

Post » Mon Jul 25, 2016 6:47 pm

Simulate (platform) Control.


On collision with Enemy
Is mirrored (inverted)
.............................................sprite > Simulate Control > left

Same for the enemy.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jul 25, 2016 6:59 pm

strange ... the simulate control for left or right do not respond ...
the character stands idle, and simulate jump works
B
4
Posts: 4
Reputation: 208

Post » Mon Jul 25, 2016 7:26 pm

You are right. This might be a better suggestion.
https://www.dropbox.com/s/hn7cwhxl3qero ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Jul 26, 2016 2:40 pm

Message: Freuvim can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
99Instances2Go wrote:You are right. This might be a better suggestion.
https://www.dropbox.com/s/hn7cwhxl3qero ... .capx?dl=0


its a good suggestion :D
it is possible to add more strength in the pushback?
B
4
Posts: 4
Reputation: 208

Post » Tue Jul 26, 2016 6:39 pm

Probaly with a higher speed.

But see, this is a suggestion done pure with the platform behavior that you have allready in place.
You can still add another behavior to the same sprite, like bullet, or physics to archive an even bigger effect.
Or Moveto behavior-moveto_t63156

Bullet can bounce of solids. Bullets can be 'turned off' when they travelled a certain distance.
Physics have there own 'solid' system.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests