Index: nacltoons/data/res/editor.lua |
diff --git a/nacltoons/data/res/editor.lua b/nacltoons/data/res/editor.lua |
index 5d495e6c8a79fd39b580cc1b72e3e87d49047281..354cff55f76eab28c743e45c5318e28a9f7e2731 100644 |
--- a/nacltoons/data/res/editor.lua |
+++ b/nacltoons/data/res/editor.lua |
@@ -79,6 +79,10 @@ end |
function object_handlers.OnTouchMoved(self, x, y, tapcount) |
local delta = ccp(x - touch_pos.x, y - touch_pos.y) |
+ util.Log('on touch moved ' .. self.node:getTag()) |
+ x = self.node:getPositionX() |
binji
2013/05/10 16:59:01
does this do anything?
Sam Clegg
2013/05/15 20:18:43
Done.
Sam Clegg
2013/05/15 20:18:43
Done.
|
+ y = self.node:getPositionY() |
+ |
self.node:setPosition(ccp(start_pos.x + delta.x, start_pos.y + delta.y)) |
end |