Change gravity

Get help using Construct 2

Post » Tue Feb 19, 2013 9:40 am


I,m new to Construct 2 and this is my qustion:

I`ve created a enemy that fall from the top of the screen with a parachute and hit the ground with a slow speed, as a real life parachute.
But then, when it's in the ground like a normal enemy and it jumps the gravity is still as before it were falling...I mean, when it jumps stats to fly upside.

How can i have 2 different kinds of gravity inside the same enemy ?

Thanks !
Posts: 1
Reputation: 377

Post » Tue Feb 19, 2013 10:29 am

You can't affect the pull of gravity per object, but you can change its linear damping, which in your case you could consider to be air resistance.

I'd suggest that you set your gravity to whatever works best with your enemy on the ground, and increase the linear damping for your parachuting enemy. You can even then lower the linear damping if the enemy's parachute gets destroyed (like in the classic game Paratrooper).

Of course, this all assumes that physics-based is the best solution for your game. if you need more direct control over the speed at which your objects move then it might be better for you to use the bullet behaviour.
Posts: 912
Reputation: 12,656

Return to How do I....?

Who is online

Users browsing this forum: Proxymity and 4 guests