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
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

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
89
S
17
G
13
Posts: 199
Reputation: 13,087

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
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

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: YoHoho and 14 guests