Change gravity

  • Hello

    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 !

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)