Search the Community
Showing results for tags 'working'.
-
ok. I have same problem in there: http://gamedev.stackexchange.com/questions/123954/p2-collision-not-working-after-state-change/124306#124306 I am digging all documentation and examples for solving that problem. But i have nothing really. I can post my own codes if anyone want. And that example: http://phaser.io/examples/v2/p2-physics/state-reset Its including same problem. If you run it carefully, you can see first place objects colliding world bounds, but after changing state its not colliding.
-
Hi guys, Maybe a silly question, but I recently started using States in my game and now I am converting my functions to work with states. The functions without parameters work fine, but the ones with parameters don't. For example, when I call: this.createBullet(x, y); I get the error: Uncaught typeError: undefined is not a function. The function createBullet(x, y) does exist, it is created like this: createBullet: function(x, y) { // blablabla content of function } p.s. these functions are in my Game.js state Can anyone tell me what I'm doing wrong? It has to be a silly mistake but I don't know how to fix it Thanks, Kevin