I can make this code appear on the android simulator. However, when I put it on the thumb drive, and then load it on the Corona Mac simulator, it won’t appear. And just comes up with a black screen. See if you can spot the problem please. Thanks
[code]
module(…, package.seeall)
–Status bar, like power and such at top
display.setStatusBar( display.HiddenStatusBar ) – hide the status bar from the top
local director = require(“director”)
local ui = require(“ui”)
function new()
localGroup = display.newGroup() --you need this line for ALL your scenes, this was missing.
local function spawn_images()
local Howtoplay = display.newImage(“htpdescription.png”, 500, 331)
Howtoplay.x = display.contentWidth/2
Howtoplay.y = display.contentHeight/2
Howtoplay.isVisible = true
Howtoplay.isBodyActive = true
localGroup:insert(Howtoplay) --you need this line for ALL your objects, this was missing.
local Gobackbtn = display.newImage(“gobackbtn.png”, 202, 81)
Gobackbtn.x = display.contentWidth/2
Gobackbtn.y = display.contentHeight/2
Gobackbtn.isVisible = true
Gobackbtn.isBodyActive = true
localGroup:insert(Gobackbtn)
local onGobackbtnTouch = function (event)
if event.phase == “ended” then
director:changeScene( “menu”)
end
end
Gobackbtn:addEventListener(“touch”, onGobackbtnTouch)
–local localBackground = display.newGroup()
–local background = display.newImage(“bg2.png”)
–localBackground:insert(background)
–Put it behind other display groups
–localBackground:toBack()
end
spawn_images()
return localGroup --you need this line for ALL your scence, this was missing
end
[/code] [import]uid: 19768 topic_id: 6974 reply_id: 306974[/import]