Object question
by JD Scogin · in Torque Game Builder · 08/28/2007 (2:46 pm) · 2 replies
I am dymanicly creating sprites. I am trying to figure out how to get the class name of a sprite. If I use handle.getClassName() it gives me then it give me t2dStaticSprite. The class of the object is playerRock, but I can't seem to figure out how to get that from the handle.
If I do handle.dump(), I find class = "playerRock".
Anyone know how to do this?
Thanks
Jd
(edit)
And of course as soon as I ask the question, I figure out the answer:
handle.getFieldValue("class")
I'll leave this here just in case someone else needs this info.
If I do handle.dump(), I find class = "playerRock".
Anyone know how to do this?
Thanks
Jd
(edit)
And of course as soon as I ask the question, I figure out the answer:
handle.getFieldValue("class")
I'll leave this here just in case someone else needs this info.
About the author
Torque Owner Spider
handle.class