Hi.
I managed this simple code:
now I'm wondering how can I move smoothlyPHP Code:var SPEED:Number = 5;
var center:Number= Stage.width/2;
var rightLimit:Number = Stage.width-ball_mc._width/2;
ball_mc._x= center;
ball_mc.onEnterFrame = function(){
this._x += SPEED;
if (this._x>rightLimit) {
this._x = rightLimit;
}
}
the ball_mc to the start point and so on .........
Bye.






Bookmarks