Correct way to delete a sprite?
by Christopher Hernandez · in Torque Game Builder · 09/22/2006 (11:21 am) · 2 replies
I found in the documentation that you can use the delete() function to delete a sprite from the stage, but I remember hearing that that might not be the most efficient way to do that. Should I use safedelete() and if so could someone please show me the correct syntax for using both of these funcitons?
Thank you.
Thank you.
#2
Thanks again.
09/22/2006 (12:32 pm)
Cool, thank you. I don't know why but I was making this harder than it appears to be. I guess its just overwhelming sometimes when you jump into a new scripting language head first. :-)Thanks again.
Torque Owner Philip Mansfield
Default Studio Name
or
Personally, I always use safeDelete and haven't run into any issues. I think I recall something about the engine being changed at some point so that delete actually calls safeDelete anyway.