<br><div class="gmail_quote">On Tue, Jan 20, 2009 at 11:53 AM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, Jan 19, 2009 at 08:52:38PM -0800, S'orlok Reaves wrote:<br>
><br>
> I like this approach to slices a lot! In a few releases, I'll incorporate this approach into the OHRRPGCE FMF --it makes a lot more sense.<br>
><br>
> Here's an idea: make a slice "insurmountable". If you have:<br>
><br>
> parent_slice<br>
>     child_slice_1<br>
>     child_slice_2<br>
>     child_slice_3, (insurmountable = true)<br>
>     child_slice_4<br>
>     child_slice_5<br>
><br>
> ...then, adding a child slice to parent_slice will add it after child_slice_2.<br>
><br>
> In this example, slices 3, 4, and 5 might be used to make some complex cursor (with a hat :D), and we want to enforce that new sprites are never added after it.<br>
><br>
> By adding the "insurmountable" property, we enforce this. And, if we want to explicitly add child_slice_6 after child_slice_5, we can still iterate to slice_5 and call "add sibling". So everybody wins.<br>

><br>
> That's my only suggestion; I feel it makes a lot of sense for cursors and other top-level objects (like hats). What do you think?<br>
<br>
</div>No, I think it would be easier to do<br>
<br>
parent_slice<br>
    container_slice_1<br>
<div class="Ih2E3d">        child_slice_1<br>
        child_slice_2<br>
</div>    container_slice_2<br>
        child_slice_3<br>
<div class="Ih2E3d">        child_slice_4<br>
        child_slice_5<br>
<br>
</div><div class="Ih2E3d">> -->Seth<br>
> PS: Another use for this flag is if you want to give a sprite custom graphics depending on his armor: always make the helmet "insurmountable", and you can simply add/remove the weapon/armor/helmet slices in any order.<br>

<br>
</div>I would just make the hero a parent, and all the armor would be children<br>
of that parent.<br>
</blockquote><div><br><br>Here's my nagging question: what about shields? If the hero is facing down, it's in front of him, but if he's facing up, it's behind.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
---<br>
<font color="#888888">James Paige<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<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" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>"Today is victory over yourself of yesterday; tomorrow is victory over lesser men" -Miyamoto Musashi.<br>