Hey folks,
I'm setting up a mining system in my game, which has the player change their sprite to one that is 3 tiles wide for a "pickaxe swing" animation.
This means partially overlapping with the adjacent object (a rock) with the pickaxe part of the sprite.
An issue I'm having though, is that whether my sprite overlaps an adjacent object or displays behind it seems to be totally random. Sometimes, I will always render above the event, and sometimes behind it. It will sometimes change for a bit on a map, and change again when I load a new one.
Is there any way I can guarantee that my player has a higher Z priority than any other events on the same Y axis?
This issue persists without any plugins, and seems to become more common when there are a lot of events on screen.
Screenshot examples of the inconsistency:
I'm setting up a mining system in my game, which has the player change their sprite to one that is 3 tiles wide for a "pickaxe swing" animation.
This means partially overlapping with the adjacent object (a rock) with the pickaxe part of the sprite.
An issue I'm having though, is that whether my sprite overlaps an adjacent object or displays behind it seems to be totally random. Sometimes, I will always render above the event, and sometimes behind it. It will sometimes change for a bit on a map, and change again when I load a new one.
Is there any way I can guarantee that my player has a higher Z priority than any other events on the same Y axis?
This issue persists without any plugins, and seems to become more common when there are a lot of events on screen.
Screenshot examples of the inconsistency: