How do I speed up physics slide?

Get help using Construct 2

Post » Tue Sep 16, 2014 6:30 pm

Hi everyone.

I have a "simple question"
How do i speed up a physics ball, that slides on bricks? heres an example:
try.png



I want the ball to speed up, when overlapping the "arrow bricks" so it can make longer slides!
(right now the gravitation is preventing it from sliding all the way)

Any ideas would be a massive help!

Thanks so much in advance.
You do not have the required permissions to view the files attached to this post.
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Tue Sep 16, 2014 8:02 pm

adding an impulse on collision with the arrow brick?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Sep 16, 2014 8:06 pm

but at what angle? (how can you predict the balls slide trajectory?) and what if the ball slides back again, how will that work? o.O

But right now this seems to do the job:
VELOCITY X - Ball.Physics.VelocityX* 1.05
VELOCITY Y - Ball.Physics.VelocityY * 1.05

Not sure if thats the best method, but it seems pretty stable. :)
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Tue Sep 16, 2014 10:22 pm

Something like this?

Please note that you might have to find a way to deal with the upside/down and vertical bricks, add Y comparisons to invert the detection that determines the impulse angle...
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Wed Sep 17, 2014 8:08 pm

Thanks ali0s, i'll take a look at it!
B
37
S
9
G
8
Posts: 541
Reputation: 8,554


Return to How do I....?

Who is online

Users browsing this forum: rayolf and 34 guests