Verax

Members
  • Content count

    2
  • Joined

  • Last visited

  1. Cannot read property 'length' of undefined

    Well, I'm just making a group, and there is no loop in my code, it says it's in Phaser's postupdate function which would look like this: postUpdate: function() { if (this.customRender) { this.key.render(); } if (this.components.PhysicsBody) { Phaser.Component.PhysicsBody.postUpdate.call(this); } if (this.components.FixedToCamera) { Phaser.Component.FixedToCamera.postUpdate.call(this); } for (var i = 0; i < this.children.length; i++) { this.children.postUpdate(); } }
  2. Hi guys, I was trying to make a group of objects and got the following error: phaser.js:45776 Uncaught TypeError: Cannot read property 'length' of undefined Everything seems to be fine, anyone has a clue why this might be happening? FYI: I'm using Phaser 2.5.0 Thank you for your help.