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...

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...