Load predefined t2dObject
by Backman · in Torque Game Builder · 12/15/2006 (7:05 am) · 0 replies
I'm in the process of turning my multiple linkpoints, polygoncollision enabled object from the editor into code and was wondering how to save off an object with all these settings, and then load that into the code?
I'm currently trying to use sceneWindow2D.addToLevel("./player.t2d"); but I'm not sure how to get it to work properly. Do I need to use new t2dStaticSprite() together with that command? How do I link the loaded t2d file and its objects to an instance?
Thanks for any help!
I'm currently trying to use sceneWindow2D.addToLevel("./player.t2d"); but I'm not sure how to get it to work properly. Do I need to use new t2dStaticSprite() together with that command? How do I link the loaded t2d file and its objects to an instance?
Thanks for any help!