After i build my app for android and installed it on my phone my background doesnt show up… the box and cicrle do but background doesnt… and i just noticed that i built it with physics.setDrawMode( “hybrid” ) in the code… will that matter?
heres the code
local composer = require( "composer" ) local scene = composer.newScene() local physics = require( "physics" ) physics.start( ) physics.setDrawMode( "hybrid" ) function scene:create( event ) local sceneGroup = self.view local BackGround = display.newImageRect("BackGround.png", 1080, 1920) local box = display.newImageRect("box.png", 30, 30 ) box.x = display.contentWidth \* 0.5 box.y = 420 end function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then print("test") elseif ( phase == "did" ) then print("test") local circle = {} local box = display.newImageRect("box.png", 30, 30 ) box.x = display.contentWidth \* 0.5 box.y = 420 physics.addBody( box, "static" ) local spawnCircles = function () local FallDown = math.random(display.contentWidth \* 0.2, display.contentWidth \* 0.8 ) circle = display.newImageRect("circle.png", 31, 31 ) circle.x = FallDown circle.y = -70 physics.addBody( circle, "dynamic", {density = .01, friction = 0.5, bounce = 0.1 }) circle.gravityScale = 0.1 physics.setGravity( 0, 10 ) --circle:addEventListener( "collision", circle ) end myTimer = timer.performWithDelay( 1000, spawnCircles, -1) --1000 is the time end return scene end -- Listener setup scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) -- ------------------------------------------------------------------------------- return scene