1 decade ago by quidmonkey
When referencing another Entity from within a different Entity's class, I've seen the documentation use this:
var puck = ig.game.getEntitiesByType( EntityPuck )[0];
Is puck a pointer? If I change the properties of puck, is it changing the properties of the object it's referencing. If not, is there a way to reference (and change) an object directly?
Thx.
var puck = ig.game.getEntitiesByType( EntityPuck )[0];
Is puck a pointer? If I change the properties of puck, is it changing the properties of the object it's referencing. If not, is there a way to reference (and change) an object directly?
Thx.