Set Isometric image depth with line segment

Hi,

I would like like to manage image depth using line segment as mentionned in this video :

Here’s my codpen to show you : https://codepen.io/sparkkbolo/pen/pogOvLR?editors=0010
the player is in front of the building only at the bottom center of the image but not on the sides.

An idea ? is there an other way to do it ?
Thanks
( soory for my poor english )

Hi, if you want to go for full isometric game I used in the past the lewster plugin for Phaser v2 combined with Tiled editor and was quite good approach and avoids such headaches in most cases. Here it is the port for Phaser v3 which I haven’t tested but maybe is helpful…

1 Like

Thanks for your reply,
I will try this thanks !