Game Development Community

Clean up question "endlevel()

by Stephen Triche · in Torque Game Builder · 06/29/2006 (11:59 am) · 1 replies

How comprehensive is endlevel()?

If I create a t2dStaticSprite in script and assign its scenegraph to the scenegraph of the current scene window (let's say it's called sceneWindow2d), will all of those objects be deleted if I call sceneWindow2d.endlevel(), or does endlevel() only destroy things defined in a level file created from the editor?

If my phrasing is too confusing, lemme know and I'll try to word it differently.

#1
07/05/2006 (10:07 am)
The objects added to that scenegraph should be deleted whether or not they were added in the level builder :)