How do I simulate inertia?

Get help using Construct 2

Post » Sun Mar 30, 2014 11:21 am

Hi, I want to know how to simulate inertia? as an example: when the user moves the sprite to say right, it moves softly and continue to move slightly even after he releases the button (like movement in micro gravity). Can this be done in construct?
B
4
Posts: 24
Reputation: 250

Post » Sun Mar 30, 2014 11:30 am

Isnt that the default behavior when using platform-behavior?
Take a look on acceleration and deceleration attributes.
B
23
S
7
G
4
Posts: 154
Reputation: 3,749

Post » Sun Mar 30, 2014 11:36 am

I've used platformer already, but never made use of the acceleration attributes. I will take a look at it. Thanks for reply :)
B
4
Posts: 24
Reputation: 250

Post » Tue Apr 01, 2014 8:45 am

Its not working :( as soon as I release the key it stops moving. I want it to keep moving slightly as if it's sliding on ice
B
4
Posts: 24
Reputation: 250

Post » Tue Apr 01, 2014 9:28 am

You want deceleration. Set the value lower or higher depending on which surfaces they're in contact with. A value of 100-300 gives a nice sliding effect.
B
57
S
15
G
11
Posts: 912
Reputation: 12,626

Post » Tue Apr 01, 2014 9:52 am

Thanks Geometrix. I will try that today.
B
4
Posts: 24
Reputation: 250

Post » Wed Apr 02, 2014 12:49 pm

Thanks Geometrix, it worked :)
B
4
Posts: 24
Reputation: 250


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], zenox98 and 35 guests