I want to make an isometric game like in the picture.
At point "1" character must be visible and the train car drawn behind the character. At point "2" the train car should cover the character so that the character is behind the train car.
This is not a 3D game but a 2D game, what is the principle called that makes this happen? or maybe there is a good tutorial somewhere.