In my game, flowlab.io/game/play/1095375 , there is grass all throughout the game, and the player is behind it in the beginning, like it is supposed to. But at a certain point, it switches behind it, which I don’t like in the design. Please help!
You can set the “display order” property of objects to determine which ones show on top, and which show underneath. Edit->properties->display order, higher numbers on top.
This is very helpful, I can’t believe I never noticed the property tap before…
@grazer - I did it, and it is mostly working, but for some reason you can see the feet of the player in some grass and water areas…
@grazer - Never mind, I just changed the color of the of the boots so it would blend into the grass without it being too noticeable. You still helped a lot, since now the grass and water are “mostly” in front of the player. Thanks!
If you’re talking about that little pixel of his feet at the seams between the blocks, that’s probably because the lower blocks are not set to be in front of the player. “Grass Block” is set to render order “2”, the same as the player, and “Dirt Inside (Top and Bottom Water Noise)” is set to order 1, which is behind the player. The means that at the seam where they touch, the player can render in front. I think fixing the render order of those blocks will fix it up.
Alright @grazer , I’ll try it out. Thanks!
Okay @grazer, it’s now working! Thanks!