Add Gravity
var player:FlxSprite = new FlxSprite(); player.acceleration.y = 600;
Adding gravity is easy thanks to the acceleration property inside every FlxSprite. Play with the value for your desired force, you can even give it a negative value.
var player:FlxSprite = new FlxSprite(); player.acceleration.y = 600;
Adding gravity is easy thanks to the acceleration property inside every FlxSprite. Play with the value for your desired force, you can even give it a negative value.