1 decade ago by fulvio
I have the following code in one of my Entities:
If I try to access
I&
I can confirm tahat
init: function (x, y, settings) {
this.addAnim('idle', 1, [0]);
this.parent(x, y, settings);
this.targets = ig.ksort(this.target);
}
If I try to access
this.target[0].pos.x I get an error:this.target[0] is undefinedI&
039;ve also tried #this.targets[0].pos.x and receive the same error.I can confirm tahat
this.targets has two entities attached to it. Not sure why I'm receiving that error though. 