Hello
Can anyone please tell me why this does not work?
local function levelRectangle() --To add level removal of balls.
level_wall2 = display.newRect(300,1100,300*2,levelnumber*80)
physics.addBody( level_wall2,“static”,{isSensor=true})
level_wall2.myName="levelWall"
timer.performWithDelay(2000,function() display.remove(level_wall2) end)
end
The object is created and does act like a sensor as specified but the timer does not remove the object

