Deleting an Attribute which has same name in another actor
TreeTree
Member Posts: 11
Not sure if it has been posted before, but this is my situation.
I have 2 different actors A and B, which have coincidently have the same attribute name.
e.g "RandomNum" - int
if i delete "RandomNum" from actor A, then for actor B, any reference to it will get changed. In my case, the attribute "RandomNum" in actor B was changed to "0" without me touching anything in that actor.
It must be the way how the XML is referenced in the code... but not too sure..
This can probably be easily solved if the Attribute names were unique for each actor.. but just heads up to anyone who was thinking "what happened? my game just broke for no reason!" :P
I have 2 different actors A and B, which have coincidently have the same attribute name.
e.g "RandomNum" - int
if i delete "RandomNum" from actor A, then for actor B, any reference to it will get changed. In my case, the attribute "RandomNum" in actor B was changed to "0" without me touching anything in that actor.
It must be the way how the XML is referenced in the code... but not too sure..
This can probably be easily solved if the Attribute names were unique for each actor.. but just heads up to anyone who was thinking "what happened? my game just broke for no reason!" :P
Comments
*thinking thinking
oh.. maybe I did the good old "copy paste" for the actor..
will that have copied the identical attribute references as well?