hello developers
i am using build 696 to build my game for android platform
i have code like this
1 2 3 4 5 | local box = display.newImageRect("box.png",100,40); box.collision=boxCollisionListener -- already defined function that takes two parameters self and event box:addEventListener("collision",box) physics.addBody(box, "dynamic",{isSensor = true,filter = { categoryBits = 2, maskBits = 1 }} ) box:addEventListener("touch",boxTouchListener) |