can someone help me on how to open a .lua file with a button on the screen.
example, i press the button and the button disappears and the playscreen.lua appears
thank you very much [import]uid: 218976 topic_id: 35419 reply_id: 335419[/import]
Hello @vadimerror,
I suggest you begin with some tutorials on both Storyboard and Widgets. These can be found here:
http://www.coronalabs.com/blog/2012/05/22/adding-buttons-to-your-games-and-apps/
http://www.coronalabs.com/blog/2012/08/21/storyboard-basic-usage/
Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 35419 reply_id: 140810[/import]
alright Brent Sorrentino that worked out good. when i start in my main.lua and i have a widget button and when i press it, it requests my level1.lua and it works. how would i leave level1.lua and go back to the main.lua and have my menu again?
thank you ahead of time [import]uid: 218976 topic_id: 35419 reply_id: 141140[/import]
Hello @vadimerror,
I suggest you begin with some tutorials on both Storyboard and Widgets. These can be found here:
http://www.coronalabs.com/blog/2012/05/22/adding-buttons-to-your-games-and-apps/
http://www.coronalabs.com/blog/2012/08/21/storyboard-basic-usage/
Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 35419 reply_id: 140810[/import]
Hi @vadimerror,
Many users of Storyboard use “main.lua” as a “hub” for their app, to load certain game assets, sounds, etc. and set up certain aspects that will remain in memory for the lifetime of the run. Then, they load a menu (which is a scene, in another module) and navigate out to other scenes from there. From an organization standpoint, I suggest that you consider this, since it might be easier as you progress further into more scenes.
Best regards,
Brent [import]uid: 200026 topic_id: 35419 reply_id: 141705[/import]
alright Brent Sorrentino that worked out good. when i start in my main.lua and i have a widget button and when i press it, it requests my level1.lua and it works. how would i leave level1.lua and go back to the main.lua and have my menu again?
thank you ahead of time [import]uid: 218976 topic_id: 35419 reply_id: 141140[/import]
Hi @vadimerror,
Many users of Storyboard use “main.lua” as a “hub” for their app, to load certain game assets, sounds, etc. and set up certain aspects that will remain in memory for the lifetime of the run. Then, they load a menu (which is a scene, in another module) and navigate out to other scenes from there. From an organization standpoint, I suggest that you consider this, since it might be easier as you progress further into more scenes.
Best regards,
Brent [import]uid: 200026 topic_id: 35419 reply_id: 141705[/import]