Export and import a tilemap in JSON [SOLVED]

0 favourites
  • 1 posts
From the Asset Store
Enchanted Forest & Cave 16x16 Tilemap with Environment Sprites
  • Hi, I'm going straight to the point:

    • I created a map with a tilemap object.
    • I need to export that map to import it later.

    The question is, how do I export the map in JSON ?.

    I think I should export it in JSON and later import it using AJAX.

    I'm right?.

    EDIT:

    Ok to export use:

    Tilemap -> Download the JSON data with filename "tilemap.json"

    Later I imported the file to directory "Files" and I load it like this:

    AJAX -> Request tilemap.json (tag "level1")

    AJAX On "level1" completed -> Tilemap Load tilemap from JSON "tilemap.json"

    But this does not work, the map is not loaded on the editor screen, the tilemap object is empty and the level I created has not been loaded.

    OK!

    this:

    AJAX On "level1" completed -> Tilemap Load tilemap from JSON "tilemap.json"

    replaced with this

    AJAX On "level1" completed -> Tilemap Load tilemap from JSON AJAX.LastData

    Solved.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)