Creating a dummy object
by Tim Saunders · in Torque Game Builder · 02/14/2006 (6:13 am) · 4 replies
How can I create an object like a t2dStaticSprite but without the associated image? Do I just create the t2dStaticSprite but don't assign an image to it?
The reason being I want an object that I can apply a velocity to that will keep track of certain positions of things but that will not be visible itself. Can I use a script object somehow instead?
The reason being I want an object that I can apply a velocity to that will keep track of certain positions of things but that will not be visible itself. Can I use a script object somehow instead?
About the author
#2
02/14/2006 (8:21 am)
Don't set an ImageMap and make sure that .setVisible(false). That should work. It should still be able to collide with things so long as .setEnabled(true).
#3
02/14/2006 (2:52 pm)
Thanks a lot for the quick responses. I thought that there may be a be a generic game object that takes up less memory but I can use the t2dStaticSprite no problem.
#4
02/14/2006 (3:47 pm)
Well, a generic game object would be a t2dSceneObject. Not sure if it uses less memory than a sprite without an imagemap.
Torque Owner Philip Mansfield
Default Studio Name