Hello everyone, I'm new around here and I've been working on an impact project for a couple of weeks.
Right now I have a pretty big map, but seems like I can't add too much collision blocks or my game will crash.
Is it a bug or is it normal?
If I cant figure this out, I'll have to split each big map in some parts and my problem will be solved, but I'm pretty sure there is another answer...
Can anyone help me with this? Thanks a lot
1 decade ago
by Joncom
What do you mean when you say "crash"?
If you're using Chrome, hit CTRL + SHIFT + J to show the developer console.
From there you'll see any errors being reported.
What are they?
Wow, how could I forget this?
Uncaught TypeError: Cannot set property 'value' of undefined.
Watching the stack it seems to be a box2d plugin error at the moment of creating the collision blocks:
Uncaught TypeError: Cannot set property 'value' of undefined lib.js:155
a.CreateProxy lib.js:155
a.CreateProxy lib.js:110
a.CreateShape lib.js:199
ig.Box2DEntity.ig.Entity.extend.createBody entity.js:52
ig.Box2DEntity.ig.Entity.extend.init entity.js:20
(anonymous function) impact.js:501
ig.Box2DEntity.inject.init collision.js:13
(anonymous function) impact.js:472
ig.Box2DEntity.extend.init dummy.js:74
(anonymous function) impact.js:501
Class impact.js:530
ig.Game.ig.Class.extend.spawnEntity game.js:131
ig.Game.ig.Class.extend.loadLevel game.js:51
ig.Box2DGame.ig.Game.extend.loadLevel game.js:26
(anonymous function) impact.js:501
ig.Box2DGame.inject.loadLevel collision.js:28
(anonymous function) impact.js:472
ig.Box2DGame.extend.init main.js:32
Class impact.js:530
ig.System.ig.Class.extend.setGameNow system.js:70
ig.System.ig.Class.extend.setGame system.js:64
ig.Loader.ig.Class.extend.end
Page 1 of 1
« first
« previous
next ›
last »