Physics Collision Speed

Get help using Construct 2

Post » Fri May 17, 2013 3:56 pm

I'm making a top down soccer game using physics. When the player kicks the ball, the ball only travels a few pixels. No matter what force/impulse I add, I can't seem to change it.

Any clue where I'm going wrong? Thanks.
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Fri May 17, 2013 6:50 pm

@kenhes

i take it your ball has a physics behavior? Could you post a capx.
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Fri May 17, 2013 7:10 pm

It may be a matter of fiction. Try to reduce it with low number. I am just giving you what I am thinking, I am also new to C2.
B
96
S
19
G
15
Posts: 198
Reputation: 14,471

Post » Fri May 17, 2013 7:36 pm

Yes, the ball has physics and low friction. Here's a capx to play with. Maybe you can find the problem? To move the player, drag the button at the bottom.

Physics Ball
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Fri May 17, 2013 9:05 pm

You are applying impulse to the player, not to the ball. Use:
(ball) Apply impulse 500 towards ball.x-100, ball.y
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sat May 18, 2013 1:43 am

That did it. Thanks 7Soul!
B
19
S
3
G
2
Posts: 212
Reputation: 4,011


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, JackTYGA, komalrajsingh, MeteoorSC, worm1 and 27 guests