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
20
S
3
G
2
Posts: 214
Reputation: 4,042

Post » Fri May 17, 2013 6:50 pm

@kenhes

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

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
102
S
20
G
15
Posts: 198
Reputation: 14,746

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
20
S
3
G
2
Posts: 214
Reputation: 4,042

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
87
S
22
G
15
Posts: 1,041
Reputation: 15,353

Post » Sat May 18, 2013 1:43 am

That did it. Thanks 7Soul!
B
20
S
3
G
2
Posts: 214
Reputation: 4,042


Return to How do I....?

Who is online

Users browsing this forum: farfetchd83, Konstantin313, oosyrag, OuyiiDexx, visionarybeast and 12 guests