Search code examples
phaser-frameworktiled

How Can I Use Tiled In Phaser 3, Using JSON Format?


For a while now, I've been trying to load a json tilemap from tiled into Phaser 3. I have tried many different things from online, but none of them seem to work. Can somebody help me?


Solution

  • First, you have to load your exported map from Tiled to the Json format in the load function.

    Second, you need to create it in the create function with the appropriate methods.

    Check out https://labs.phaser.io/index.html?dir=game%20objects/tilemap/&q= in the static sction and let me know