<div dir="ltr"><div><div>Ah! I like that.<br><br></div>I'll move the heroes to the end if the sibling list in update_walkabout_npc_slices()<br><br>---<br></div>James<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 2:45 AM, Ralph Versteegen <span dir="ltr"><<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8 June 2016 at 21:44, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com">teeemcee@gmail.com</a>> wrote:<br>
> On 8 June 2016 at 06:19, James Paige <<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>> wrote:<br>
>> So when Heroes and NPCs are in the same layer, and the player mounts a<br>
>> vehicle that does not hide the leader, the sorting order is only correct<br>
>> half the time.<br>
>><br>
>> A currently mounted vehicle should always be behind a hero sprite with the<br>
>> same Y value.<br>
>><br>
>> That layer is currently slAutoSortY<br>
>><br>
>> I am wondering if it is better to set it to slAutoSortCustom, with a loop in<br>
>> refresh_walkabout_layer_sort() that manually sets the correct sort order for<br>
>> all walkabouts, or if I should create a new magical slAutoSortWalkabouts and<br>
>> code the special rules in there.<br>
><br>
> I certainly wouldn't add a special sort mode for vehicles. The easy<br>
> way to special case the correct sorting behaviour: in<br>
> update_walkabout_npc_slices(), move the vehicle NPC slice to be the<br>
> last of its siblings (before sorting), or alternatively move the hero<br>
> slice(s) to the front (the latter may fix some other undesired<br>
<br>
</span>Oops, I mixed up last/first. The last sibling gets drawn on top.<br>
<div class="HOEnZb"><div class="h5"><br>
> layering too). Doesn't this affect all heroes while<br>
> mounting/dismounting, not just the leader?<br>
><br>
> This reminds me that we haven't yet added script commands to get or<br>
> set the slice autosort setting, although it's accessible in the slice<br>
> editor.<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</div></div></blockquote></div><br></div>