[Ohrrpgce] vehicle sorting

James Paige Bob at hamsterrepublic.com
Tue Jun 7 11:19:07 PDT 2016


So when Heroes and NPCs are in the same layer, and the player mounts a
vehicle that does not hide the leader, the sorting order is only correct
half the time.

A currently mounted vehicle should always be behind a hero sprite with the
same Y value.

That layer is currently slAutoSortY

I am wondering if it is better to set it to slAutoSortCustom, with a loop
in refresh_walkabout_layer_sort() that manually sets the correct sort order
for all walkabouts, or if I should create a new magical
slAutoSortWalkabouts and code the special rules in there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20160607/aa5e43db/attachment.htm>


More information about the Ohrrpgce mailing list