1 decade ago by dmen
I have a snowman entity that is setup like so:
defines(function () {
EntityButtons = ig.Entity.extend({
name: 'buttons1',
init: function(){
etc.
Later, I have a bullet that tries to get this entity in its update function:
ig.log(ig.game.getEntityByName('buttons1'));
All I ever get is undefined.
Anyone?
defines(function () {
EntityButtons = ig.Entity.extend({
name: 'buttons1',
init: function(){
etc.
Later, I have a bullet that tries to get this entity in its update function:
ig.log(ig.game.getEntityByName('buttons1'));
All I ever get is undefined.
Anyone?