SRL Archive - SRL Archives

walkhalfway(x, y);


Krazy_Meerkat

2006-05-17 17:39:51

I use it for moving npc's in the fight caves, what more can I say?
[php]{*******************************************************************************
procedure walkhalfway(xl, yl : Integer);
By: Krazy_Meerkat
Description: Walks halfway to destination (good for moving npc's, etc).
*******************************************************************************}
procedure walkhalfway(xl, yl : Integer);
begin
xl:= Round((xl + MMCX) / 2);
yl:= Round((yl + MMCY) / 2);
Mouse(xl, yl, 4, 4, true);
end;[/php]

Bebe

2006-05-19 22:24:45

Seems good to me :)

Simple, effective, nice.

Ace

2006-05-20 19:03:14

Looks good. Basic. But useful. ;)

Krazy_Meerkat

2006-05-20 19:52:30

We don't want to overcomplicate things which can be expressed in a simpler form :)