I cannot recreate the issue that u guys are saying…
i tried this and it works perfectly fine… the began phase is triggered only once.
[lua]local gameGroup = display.newGroup()
local physics = require(“physics”)
physics.start()
function newObject()
local rand = math.random( 110 )
obj = display.newText(rand,0,0,nil,20)
obj.x = 10 + math.random( 200 )
obj.y = -100
obj.hit = 0
obj.name =rand
physics.addBody( obj, { density=0.5, friction=0.3, bounce=0} )
end
local dropobjects = timer.performWithDelay( 1000, newObject, 100 )
local groundLine = display.newRect(10, 300, 320, 100)
local function removeObject(event)
if event.phase == “began” then
print(event.other.name)
end
end
physics.addBody( groundLine, “static”,{isSensor =true})
groundLine:addEventListener(“collision”,removeObject)[/lua] [import]uid: 71210 topic_id: 13795 reply_id: 51445[/import]
