Hello!
I use this code on a mc to make it move to a y possition:
To make it move to y = 20 i use this code on a button:Code:onClipEvent(load) { _root.ypos1=Stage.height/2; } onClipEvent(enterFrame) { this._y+=(_root.ypos1-this._y)/3; }
As you can see the movment will go from a fast speed and then slow down.Code:on(press){ _root.ypos1=20; }
My question is; Can you make the movement go from 0 then increase and then "break" and stop when it has reached "ypos1=20"?
Thanks in advance!


Reply With Quote