What is a good way to remove all game pieces of a level?

What is a good way to remove all game pieces of a level, before proceeding to the next level or control panel? [import]uid: 7197 topic_id: 4897 reply_id: 304897[/import]

Hi derwydd,
a logical and easy way to do so would be to have a displayGroup that handles all the “Disposable” peices. So when you need to remove, you remove all the objects that are in this group.

For a good example see the director class, it uses some really nice tricks to remove all objects before moving to the next screen. Alternatively use the Director class, it is inbuilt for you, seamless and just works.

cheers,

Jayant C Varma [import]uid: 3826 topic_id: 4897 reply_id: 15819[/import]