<div dir="ltr">It might even be the kind of thing you want at the engine level. The original Legend of Zelda allowed semi-freeform movement, but you snapped to the half-tile when you switched between moving horizontally and vertically. The same thing could work here.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 12:56 PM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I was talking to RMZ about how to unstick NPCs that get stuck when their speed <br>changes while moving. I know Pepsi has had to do a ton if this sort of thing too.<br><br></div>I came up with:<br><div><pre>script, snap npc, arg, begin
  # Kill current movement
  walk NPC(arg, west, 0) # x axis
  walk NPC(arg, north, 0) # y axis
  # reset NPC to current tile
  put NPC(arg, NPC x(arg), NPC y(arg))
end</pre>And I was thinking this is probably common enough that it should be done with standard commands.<br><br></div><div>Maybe a built-in "snap NPC" command? Or maybe an optional argument to "put NPC" that can kill current momentum?<br><br></div><div>Thoughts?<br><br>---<br></div><div>James <br></div></div>
<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>
<br></blockquote></div><br></div>