Jump to content

Tiled object layers causing Phaser game to hang


danhett
 Share

Recommended Posts

Hello!

 

So, I've got a small Phaser game and I'm using Tiled to create my levels. I currently have two tile layers that work great.

 

However, when I add an Object layer with a single object PNG in it, my game hangs: Chrome pauses for a bit and goes to the "aw snap!" page and Firefox throws an Unresponsive Script error.

 

Interestingly this happens as soon as I add anything to my Tiled items list - I'm not even instantiating anything in Phaser yet. All I need to do to cause the error is create a new Object layer, add a PNG, and then when I try that level it tips over. For some reason as soon as it exists in the JSON output it causes problems.

 

Has anyone got any idea why this might be?

 

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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