Jump to content

map.createLayer returning undefined


chand1012
 Share

Recommended Posts

I am working on a basic platforming game and I had a demo working based on the Phaser platformer example on http://phaser.io/ and it works, until I pasted the code into a game state. Now that the game is in a state, it can't find the layer given in the JSON file. It returns "layer is undefined" when I try to use layer.resizeWorld();. Here is the level JSON file and here is the code for the actual game file.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...