Hey guys!
I'm making a game based on states.
This is my Game.js (1st stage) fil starts with this.
var SpaceChicken = SpaceChicken || {};
The problem is, everything is working except 2 functions. I have a function where you can pickUp boxes but the game crashes whenever i pick it up telling me this error: ""
The code i've used looks like this:
i have tried putting player.addChild(this.game.make.sprite(25, -150, 'box')); but then it says same error, just with this.make is not defined
Any solutions or ideas to prevent this?
Thanks:)