I have this code to the walls , or the full screenshot limits for my application but does not work , someone can help me figure out the error ??
-- Limites do ecrã local borderTop = display.newRect( 0, 0, 707, 1 ) borderTop:setFillColor( 0, 0, 0, 0) -- Invisivel physics.addBody( borderTop, "static", borderBodyElement ) sceneGroup:insert(borderTop) local borderBottom = display.newRect( 0, 1000, 707, 1 ) borderBottom:setFillColor( 0, 0, 0, 0) -- Invisivel physics.addBody( borderBottom, "static", borderBodyElement ) sceneGroup:insert(borderBottom) local borderLeft = display.newRect( 0, 1, 1, 1000 ) borderLeft:setFillColor( 0, 0, 0, 0) -- Invisivel physics.addBody( borderLeft, "static", borderBodyElement ) sceneGroup:insert(borderLeft) local borderRight = display.newRect( 707, 1, 1, 1000 ) borderRight:setFillColor( 0, 0, 0, 0) -- Invisivel physics.addBody( borderRight, "static", borderBodyElement ) sceneGroup:insert(borderRight)