Need advice on loading levels.

I’m looking for some advice on loading levels.

In the game I’m making I have a grid scrollable grid of buttons, each of which represents a different level. On pressing a button, the corresponding level needs to be loaded, but I’m confused as on best practice for doing this?

Do I make a *.lua for each level and load it on button press, or do I store my levels in some other way, such as a database or similar?

If anyone knows of any tutorials on this subject, please let me know.

Thanks

Dan [import]uid: 67933 topic_id: 25620 reply_id: 325620[/import]

Hey Dan,

Are you using Director or Storyboard? If so a file for each level is standard practice and helps keep everything neat and organized :slight_smile:

Peach [import]uid: 52491 topic_id: 25620 reply_id: 103689[/import]