Newbie questions

Hello, I’m new to Corona and I’ve searched the forum but can’t find the answer. Maybe someone can help.

  1. Is there an easy way to delete a group of DisplayObjects? I have a group within group within group. Is there a way to delete the parent group that can delete everything in it?

  2. I’m currently working on a game. Is there a function to reset the game? I’m following the sample files and put everything in a local 'main’function. When the gameplay ends, is there a simple way to destroy all variables/displayObjects and restart the ‘main’ function?

Thanks in advance! [import]uid: 9222 topic_id: 2106 reply_id: 302106[/import]

  1. Removing a group will remove all the objects within the group, using: group.removeSelf()

  2. You need to keep track of all the variables/objects and destroy and recreate them yourself. There is no restart function.

-Tom [import]uid: 7559 topic_id: 2106 reply_id: 6321[/import]

Thank you very much for the answers! [import]uid: 9222 topic_id: 2106 reply_id: 6326[/import]