Hi i have a problem . My app work good in simulator but doesn`t work on davice. i see only background but no textures .
function DrawBG() bg4 = display.newImage("bgdown.png") bg4.x = (240+480) bg4.y = (80+160) bg1 = display.newImage("bgup.png") bg1.x = 240 bg1.y = 80 bg3 = display.newImage("bgup.png") bg3.x = (240+480) bg3.y = 80 bg2 = display.newImage("bgdown.png") bg2.x = 240 bg2.y = (80+160) end function ScrollBG1(self,event) self.x = self.x -2 function resetowanie() if bg1.x \<= -240 then bg1.x = (240+480) end if bg3.x \<= -240 then bg3.x = (240+480) end end resetowanie() end function ScrollBG2(self,event) self.x = self.x -3 function resetowanie() if bg2.x \<= -240 then bg2.x = (240+480) end if bg4.x \<= -240 then bg4.x = (240+480) end end resetowanie() end function RunScrollBG() bg1.enterFrame = ScrollBG1 Runtime:addEventListener("enterFrame", bg1) bg3.enterFrame = ScrollBG1 Runtime:addEventListener("enterFrame", bg3) bg2.enterFrame = ScrollBG2 Runtime:addEventListener("enterFrame", bg2) bg4.enterFrame = ScrollBG2 Runtime:addEventListener("enterFrame", bg4) end function DrawMOB() mob1 = display.newImage("mob.png") mob1.x = 40 mob1.y = 264 end DrawBG() DrawMOB() RunScrollBG()
and it`s a link to apk http://www40.zippyshare.com/v/15467918/file.html