TOUCH_STARTイベント時にドラッグ開始位置を記憶して、
TOUCH_MOVEイベントで随時座標を変化させる感じ。
var bear = new Sprite(32, 32); bear.image = game.assets['chara1.gif']; bear.x = 100; bear.y = 200; bear.addEventListener(enchant.Event.TOUCH_START, function(e){ originX = e.x - this.x; originY = e.y - this.y; }); bear.addEventListener(enchant.Event.TOUCH_MOVE, function(e){ this.x = e.x - originX; this.y = e.y - originY; });
ネタ元