Hi. I have been trying to figure out how to make my screen go into “main.lua” when i click the button i created “play”. Please help! [import]uid: 132369 topic_id: 24175 reply_id: 324175[/import]
You wouldn’t go to main.lua when you click play; when using director your app launches and normally goes right through main.lua into your menu.lua (or the like) screen. From there you’d have game.lua or level1.lua or something like this that you would then load when the play button was pressed.
Does this make sense? [import]uid: 52491 topic_id: 24175 reply_id: 97654[/import]
It kinda make sense. If your game should be in game.lua or level1.lua, what should be in main.lua ?
[import]uid: 132369 topic_id: 24175 reply_id: 97703[/import]
Something like this when using Director:
[lua]display.setStatusBar (display.HiddenStatusBar)
local director = require (“director”)
local mainGroup = display.newGroup()
local function main()
mainGroup:insert(director.directorView)
director:changeScene(“menu”)
return true
end
main()[/lua]
That would be if your menu was in a file called menu.lua and was the first thing you wanted users to see after the splash screen.
Peach [import]uid: 52491 topic_id: 24175 reply_id: 97722[/import]
Thank you so much Peach !!!
[import]uid: 132369 topic_id: 24175 reply_id: 97723[/import]
Not a problem, good luck with your project [import]uid: 52491 topic_id: 24175 reply_id: 98212[/import]