Jump to content

how to position a group in front of a tilemap layer


Recommended Posts


this is the line at the end of my create function to make sure my player walks behind this layer..

good..  but


i want all my enemies to be in front of the foregroundlayer..   if i bring my enemies to top in a foreach loop they will only be on top of their own group... as the documentation states..


so i tried this:

enemies.z = layerforeground.z + 1;

and the group "enemies" gets the z-index 33 while layerforeground has 32..   i thought that the group would now be infront of the layer but it isnt :(

Link to comment
Share on other sites

  • 1 year later...
  • 4 months later...

  • Recently Browsing   0 members

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