I have a problem regarding with the touch and move. I want to move a sprite by following the set of touches but it moves in different ways when i clicked many times.
here's my code so far:
moveObject : function(position){
var moveTest =cc.MoveTo.create(1, position);
var spriteMove = this.sprite;
spriteMove.runAction(moveTest);
},
onMouseUp : function (event) {
var location = event.getLocation();
this.moveObject(location);
},
What can I add more to this to queue the moveby action?