Jump to content

Tilemaps as children of groups


Recommended Posts

Hey guys,


Hope I'm not creating too many topics. None of my questions seem to be directly related to one another.


I'm trying to create tilemap layers within a group, so i can iterate through them.


MT finds and creates the group, but the group has no children. In mt.helper.js, line 643, the blank layer isn't added to the group that's passed into the function, so it loses its group and ends up being attached directly to the world.

var tl = map.createBlankLayer(object.name, object.widthInTiles, object.heightInTiles, object.tileWidth, object.tileHeight);

should probably be

var tl = map.createBlankLayer(object.name, object.widthInTiles, object.heightInTiles, object.tileWidth, object.tileHeight, group);

I've already made the change locally, but since this should be expected behavior, I just wanted to point out that it doesn't work.


EDIT: Actually, it seems like the mt.helper file is rebuilt every time, so I have to dig a little deeper to find the source so it doesn't keep overwriting my changes. Making the change official, if tilemaps in groups is expected behavior, would be very much appreciated! Thank you.

Link to comment
Share on other sites



thank you for pointing out and fixing issue, I have added your changes to the repo.


mt.helper.js is overwritten every time project gets updated - to include bugfixes like this for all projects.

If you want to keep your local version - just rename mt.helper.js e.g. mt.helper-local.js and change index.html accordingly.

Original mt.helper.js is located under: server/templates/default/src/js/lib/mt.helper.js

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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