onCollision Within Behaviors Dont Recognise Clonned Objects?
by Jack-S- · in iTorque 2D · 02/27/2012 (4:59 pm) · 0 replies
Hi guys, I have ran into a really annoying problem, I have been trying to get a behavior to identify a clonned object via its class name however, all I get in return is the objects ID number and Class ID number??
If I were to use the same process except within script then this problem completely ceases and all clonned objects are identifiable via their class names whenever onCollision is called however not the case when the same code is used withina behavior..
Im using an object as a kind of radar. whenever a cloned object enteres the radar its identified via its class name (because its a clone) and some extra code is then executed.
Anyone know a workaround??
Thanks in Advance.
If I were to use the same process except within script then this problem completely ceases and all clonned objects are identifiable via their class names whenever onCollision is called however not the case when the same code is used withina behavior..
Im using an object as a kind of radar. whenever a cloned object enteres the radar its identified via its class name (because its a clone) and some extra code is then executed.
Anyone know a workaround??
Thanks in Advance.
About the author