Game Development Community

What is the meaning of

by Tim Kin Chu · in Torque Game Builder · 05/30/2006 (12:43 am) · 2 replies

There a staticsprite object %ssObjA

and a scriptObect %sObjB

then..........

%sObjB.img = %ssObjA;


then ..........

the %sObjB.img is a copy of %ssObjA or just a " id " of the %ssObjA????

#1
05/30/2006 (6:16 am)
Just the "ID"
#2
05/31/2006 (8:52 am)
And the "ID" is a unique integer number. In torque you can refer to an object by it's global name, or by it's unique id. Pretty convenient actually :-) Also there are clone() and copy() functions. New in Beta? See t2dSceneObject I think.