Jump to content
Search Community

Pygmy

Members
  • Posts

    1
  • Joined

  • Last visited

Pygmy's Achievements

0

Reputation

  1. I know it have to be simple and it should probably work with onUpdate and onUpdateParams but I dont know how to do it. I have 'for' loop changing x and y variables. Generaly its about moving object from point to point - but tween is going straight to last point. for (var m:uint=0; m var XX=board.getChildAt(player.field).x; //new x var YY=board.getChildAt(player.field).y; //new y moveBoard(XX,YY); player.field++; } public function moveBoard(xx:Number,yy:Number):void { TweenMax.to(table,1, {x:(x-xx)+stageW*.5, y:(y-yy)+stageH*.5}); } Thank you for any help.
×
×
  • Create New...