ID:2221711
 
(See the best response by Kaiochao.)
https://puu.sh/uyvQT/352aaa0278.png

Problem description: I'm trying to limit the bound_height to allow players to walk above other players to maintain a more realistic view. How could I always make sure that the head would go over the feet in a situation like this?

Best response
The built-in solution is to use world/map_format = SIDE_MAP. This attempts to treat the camera as viewing the world from a downward angle, and all atoms are "standing up" by default, so that things "closer to the camera" should be layered higher.

You can use the same logic to calculate layers for things yourself, in the default map format, TOPDOWN_MAP: the higher an object's y coordinate is (including step_y for pixel movement), the lower the layer should be. This won't work well with changes to client.dir, though.