Use acceleration
to change the velocity
of a FlxObject
over time.
// object will accelerate from left to right 250 pixels per second
object.acceleration.x = 250;
// if the object starts at velocity.x = 0:
// at 0.5 seconds, velocity.x = 125
// at 1.0 seconds, velocity.x = 250
// at 2.0 seconds, velocity.x = 500
// etc.