Jump to content

Tilemap get object position


Recommended Posts

you need add custom param for your object. And after by means methods .hasOwnProperty(your param) and method forEach get your object from object layer. 

this.map = this.add.tilemap('tilemap');

var objects = this.map.objects;

var myObj;


    if(el.hasOwnProperty(customParam) && el.customParam==customParamValue){




Link to comment
Share on other sites

@jmp909 - no, not yet. No layers, just 128 128 generated tileMap data, I'm interested because I opened another post on tilemaps:

I am able to save files natively by full OS support with node modules via nwjs, but I have not found a way to save generated tilemaps with phaser into real files- because of the object structure:

Link to comment
Share on other sites


  • Recently Browsing   0 members

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