you should see something similar to:


(Uploaded with ImageShack.us)

which, as you can see, does also take into account diagonal movement (it's just an immediate cost of 2).
Also, this is extremely bare-bones ofcourse, it only is a visual representation of how to calculate and clamp movement cost within a certain range, there is no movement, visuals or game at all present. Just something to get someone with the idea started.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/