18
Apr 10
#45
Accleration, decelration and going the other way AS2
Acceleration:
Speed= Speed + acc
this._x = this._x + Speed
or
Speed = Speed * 1.1
Deceleration
Speed = Speed * .75
Reverse Direction
Speed = Speed * -1 or acc = acc * -1
Accleration, decelration and going the other way AS2
Acceleration:
Speed= Speed + acc
this._x = this._x + Speed
or
Speed = Speed * 1.1
Deceleration
Speed = Speed * .75
Reverse Direction
Speed = Speed * -1 or acc = acc * -1