Debugger ever changing z-index of sprite upon start/attach, sometimes on start it appears behind map, sometimes appears on top I just have to keep stopping and starting until I get lucky, note: none of my code touches this field so it has me thinking some weird behaviour behind the scenes or is just known minor issue.
I’m currently using defold 1.12 stable build.
Few extra points using mobile game template if that helps, oh also I know its appearing behind sometimes because the camera is setup to follow and if I walkoutside the drawn bounds the sprite becomes visible again.
Managed to reproduce again there and added print for x, y and z of map sprite & character sprite but seems both z-indexes are same so I dunno what is happening as again I have to stop & start until finally character appears
(note: not using tilemap as I’m drawing entire map from scratch instead of doing blocks.)
DEBUG:SCRIPT: player x: 354, y: 187, z: 0
DEBUG:SCRIPT: world x: 354, y: 187, z: 0
I noticed though when I turn 3D on, on previewer somehow sprite is behind map image, where as when in 2D its appearing in front, not sure if related but just mentioning in case anyone has a clue as I try figure out what I’m doing wrong here.
Note: nvm figured it out, minor just z-index setting.
