Game Development Community

Creating t2d objects in c

by Jason Booth · in Torque Game Builder · 02/19/2006 (1:09 pm) · 0 replies

Hello; I'm working on a new c++ based t2d object for my game, and have been looking over the tutorial on the site. However, I've noticed that the enumeration of t2d datablock types seems to be gone in the latest alpha. As a test, I copied t2dStaticSprite and changed the class name/etc, and while the code compiles and I can create a copy of my object in the console, I get a crash in the physics code when I try to use the object in my game. Right now it is an exact copy of t2dStaticSprite, so I'm assuming there is some new way to register the object with t2d that I'm missing?

Any help, as always, is appreciated..