3

If I use the isometric plugin for Phaser, I end up with something like the third case of the following picture:

enter image description here

I would like to create a world in pseudo isometric, with only one axis tilted. This would be the second case in the picture.

Is it possible to achieve that with Phaser? With or without the Isometric plugin? If Phaser can't handle it, is there an open-source/free alternative for this kind of setup?

1 Answers1

3

Phaser handles this out of the box using sorting based on the y index. I have used this exact technique too to create stacked sprites so the elements at the bottom of the screen are drawn over the ones above.

https://phaser.io/examples/v2/groups/depth-sort

The trick used in Phaser is to sort the z index based on the y index so the characters sprite is drawn at the correct depth.

BobGneu
  • 222
  • 3
  • 14