ID:2354977
 
Resolved
A layering issue appeared in projects using SIDE_MAP when mobs had multiple layers and did not conform to world.icon_size. This may have repercussions for other SIDE_MAP games. Eventually a topological sort will be desired to properly handle all layering issues.
BYOND Version:511
Operating System:N/A
Web Browser:N/A
Applies to:Dream Seeker
Status: Resolved (512.1416)

This issue has been resolved.
(Posted by Lummox JR on behalf of S10Games.)

Descriptive Problem Summary:

Clothing overlays on mobs, using FLOAT_LAYER, sometimes change their layer order as you move around the screen.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
1) Create a simple world with 32x32 icon size and pixel movement, with the map format set to SIDE_MAP.
2) Create mob and clothes/hair/etc. icons that are 64x64.
3) Give all of the clothing, hair, etc. variations on FLOAT_LAYER and put them in mob.overlays.
4) Put multiple mobs on the map.
5) Compile and start walking around.


Expected Results:

The layer order should never change.

Actual Results:

Sometimes layers appear badly out of order, even putting the body above the clothes. This depends on the positions of the mobs on the screen.
Lummox JR resolved issue with message:
A layering issue appeared in projects using SIDE_MAP when mobs had multiple layers and did not conform to world.icon_size. This may have repercussions for other SIDE_MAP games. Eventually a topological sort will be desired to properly handle all layering issues.
Thank you very much, this issue has been haunting us for months.