All (or all that I can find) of the sample apps have just one “screen”, so to speak. Now of course I can show/hide elements to have multiple screens (putting them in groups), but is there an idiomatic way in Corona to build multi-screen apps?
(Ideally, following such an idiom would make it possible (later, eventually) for the Corona build process to emit each screen as its own Activity under Android.)
[import]uid: 11822 topic_id: 7729 reply_id: 307729[/import]
I don’t know what you mean by “idiomatic.” Most people use the Director class (look in Resources for that.) Alternatively, I posted in Code Exchange>Tutorials my Object-Oriented framework that has multiple screens. [import]uid: 12108 topic_id: 7729 reply_id: 27443[/import]
By idiomatic, I mean “what is the most common and accepted way to handle this among Corona developers?”
I will look at the two things you mentioned, thanks!
[import]uid: 11822 topic_id: 7729 reply_id: 27463[/import]
Hey Kyle,
http://techority.com/2010/11/19/how-to-use-scenesscreens-in-corona/
That covers using director with no prior knowledge and as jhocking said, it’s the “done thing”.
Good luck
[import]uid: 10144 topic_id: 7729 reply_id: 27502[/import]
Thank you, I will use “director” as described there.
[import]uid: 11822 topic_id: 7729 reply_id: 27737[/import]
Thanks - I downloaded this, tried it out, and it is exactly what I was hoping for.
Perhaps in a future version of Corona, this will be “in the box”.
[import]uid: 11822 topic_id: 7729 reply_id: 27927[/import]