Physics: Sticky surface?

Get help using Construct 2

Post » Sat Aug 24, 2013 8:29 am

I feel like this is a simple question and I'm just searching for the answer incorrectly.

I'm making a physics puzzler where different surfaces do different things to a falling/bouncing object.

I've got surfaces that bounce it away and surfaces that launch it like a speed boost, but the one that's giving me trouble is a surface that slows down the object when it hits, kind like a sticky wall or some kind of shock absorber. I wasn't sure what settings I needed to adjust and if I needed to adjust them on the surface object or the bouncing object or both, and playing around with various numbers in the objects wasn't getting me anywhere.

Do I need to do something to the bouncing object on its collision with the sticky surface in the events?
B
11
S
2
Posts: 87
Reputation: 1,112

Post » Sat Aug 24, 2013 2:26 pm

Reduce the bouncing objects speed. You could be more clear about what are you really planning to do. You could post a screenshot or .capx.
B
14
S
5
G
4
Posts: 107
Reputation: 4,788

Post » Sat Aug 24, 2013 4:00 pm

Here's an isolated case that I threw together. When the ball hits the pink surface, I want the ball to behave as though the surface absorbed its shock, so slow it down, yes.

So are you saying that I should manually set the ball's velocity on collision with the pink surface?

http://storage.wertle.com/construct2/Example.capx
B
11
S
2
Posts: 87
Reputation: 1,112

Post » Sat Aug 24, 2013 4:20 pm

You should do it through events, because sticky isn't an existing state in the physics engine.

Just make an event - on collision with pink - set velocity to 0
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 » Sat Aug 24, 2013 5:35 pm

Thanks!
B
11
S
2
Posts: 87
Reputation: 1,112


Return to How do I....?

Who is online

Users browsing this forum: duke2704, megatronx, sebrosen and 2 guests