How do I lower the gravity acceleration rate?

Get help using Construct 2

Post » Tue Apr 04, 2017 7:39 pm

The speed of gravity is just find but how do I set how fast an object that is falling accelerates while falling after gravity has it falling at a certain speed?

For example, my game has the player falling and avoiding hitting into objects, after 5 seconds or so of falling I want the Y vector speed to stop growing/accelerating so that he can see the objects before they hit him.
B
27
S
12
G
5
Posts: 79
Reputation: 5,223

Post » Tue Apr 04, 2017 11:20 pm

Try max() (or min(), or clamp() if those are more suitable) in Set velocity.

So Every Tick - Object Physics Set Y Velocity to max(Object.Physics.VelocityY, TerminalVelocity)

(I'm not sure if its Min for Y velocity heading downwards)
Mistakes were made.
B
52
S
26
G
110
Posts: 1,620
Reputation: 62,161


Return to How do I....?

Who is online

Users browsing this forum: Bobbyneal100, Kin, mickclarke, takamoto, tinhofiel, TRMG and 34 guests