intervalID = setInterval(function () { _x += (targetx-_x)/speed; _y += (targety-_y)/speed; }, 10000);