
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
so it takes the current position takes off your final xy each time, try putting /5 in the () or spaces somewhere
or perhaps you need an onclipevent(enterframe) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
}
because then it will move slowly back, /5 should be the speed. You might need an if clause to stop it though so it doesn't use up cpu power when still doing that equation
( ,
Wed 3 Mar 2004, 16:22,
archived)
this._y -= (this._y-this.myFinalY)/5;
so it takes the current position takes off your final xy each time, try putting /5 in the () or spaces somewhere
or perhaps you need an onclipevent(enterframe) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
}
because then it will move slowly back, /5 should be the speed. You might need an if clause to stop it though so it doesn't use up cpu power when still doing that equation