b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 2828401 (Thread)

#
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)
# right..
i think i get it - i will have a bit more of a fiddle ;)

cheers again!
(, Wed 3 Mar 2004, 16:31, archived)
# no trouble
*doffs hat*
(, Wed 3 Mar 2004, 16:33, archived)