Hi, Im a new Corona user and I first want to say that so far it’s an excellent tool. However, I currently can’t figure out why Corona is crashing when Im trying to drag an object using the dragbody function in the DebugDraw example. Corona crashes before a debug message can appear so I can’t pinpoint exactly where the problem is. Here is the code Im using now.
local physics = require(“physics”)
local gameUI = require(“gameUI”)
physics.start()
local dragBody = gameUI.dragBody
sprtTurtle = display.newImage(“sprtTurtle.png”)
sprtTurtle.x = 100
sprtTurtle.y = 100
physics.addBody(sprtTurtle, “kinematic”)
sprtTurtle:addEventListener (“touch”, dragBody)
I do have “gameui.lua” in the same directory as “main.lua.” So I know that’s not the problem. From what I see in the DebugDraw example, the above code seems like the absolute minimum to get this going. Thanks in advance for any help. [import]uid: 27520 topic_id: 6037 reply_id: 306037[/import]