Game Development Community

Object type

by anycast · in Torque Game Builder · 10/11/2008 (2:09 am) · 2 replies

Hello all,

How can I find out if a given object is a t2dStaticSprite or a t2dAnimatedSprite?

I'm doing some type checking in my code and this would be really useful.

Thanks in advance for any help.

#1
10/11/2008 (2:35 am)
I think getClassName() and isMemberOfClass(name) could help.
#2
10/11/2008 (2:37 am)
Thanks, that's exactly it :-)