Game Development Community

how do you check SceneGroup() to make sure all objects added are deleted

by hbomega · in Torque 2D Beginner · 10/03/2013 (7:45 am) · 2 replies

I figure that i would just check if getcount()was equal to 0, problem i have more than one SceneGroup and i want to check them all,

#1
10/03/2013 (1:10 pm)
Check all scene groups....

You could just add every object to a SimSet (because an object can belong only to one group at a time but many sets) and use that SimSet to track your objects. Bonus: you can delete all objects by iterating the SimSet and deleting them....
#2
10/03/2013 (1:30 pm)
can you show examples of both methods if possible Thanks