Game Development Community

Clear everything out of my torque game

by Cyrus Amiri · in Torque X 2D · 06/06/2007 (7:43 am) · 1 replies

Anyone know how to clear everything from your torque game?

GUI Stuff
Sprites
Animated Sprites
Special sorters in the sorting dictionary

all that.

Is there like a big, fat, CLEAR() somewhere that I don't see?

Cyrus

#1
06/06/2007 (8:48 am)
I think you can do

TorqueObjectDatabase.AllObjects.MarkForDelete = true

Or a container search, such as you can find in the microbes tutorial, you can use that also to delete everything. In fact, thats what I'm currently using in my game.

But you can't delete the GUI stuff I think. That has to be done a different way, by poping the various dialogues. You can find examples of how to pop dialogues in the documentation.

I don't really know what your sorters are about though, so I wouldn't know how to delete those.