sebashwa / phaser3-plugin-isometric

Feature-packed axonometric plugin for Phaser 3 which stays true to the Phaser API.
https://sebashwa.github.io/phaser3-plugin-isometric
MIT License
172 stars 36 forks source link

Drawing Layers #16

Open fairhat opened 4 years ago

fairhat commented 4 years ago

Hello,

is it possible to add some sort of "drawing layers" to the objects? For example i'm drawing a grid as floor, placing a chair on top of it and a player on top of the chair. If i rotate the chair (say facing away from the camera) i want the chair to partially draw (split my sprites already) on top of the player.

For now i am placing some objects closer to the camera. However this seems hacky to me and adds a lot more complexity even for basic objects (like a chair)

Is there a way to sort the objects that are drawn?

LordEwans commented 1 year ago

The layer system will now work, I opened a pull request. Though it may be late.