Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 04 Mar 2013
Offline Last Active Mar 18 2013 01:34 PM

Posts I've Made

In Topic: Modified movement cost using A*

06 March 2013 - 10:03 AM

Perfect well I'll be getting around the implementing this in a couple days and will check back in.

I think averaging the 2 tiles is best because, at least in my game, you can do diagonal movement, and if you just used the next tile, while the loss of accuracy would still be small, the cost of movement wouldn't balance out if you went diagonal and then straight (left, right, up, down) following the diagonal movement, and I think it would be big enough of a difference to throw off the accuracy of the path finder.

In Topic: Modified movement cost using A*

04 March 2013 - 05:18 PM

OK that makes sense.  I was actually kind of thinking along those lines.  And just to clarify one issue.  The main points of movement are the center of the 10x10 tiles, so if I'm moving from lets say a grass tile to a sand tile, since I am moving 1/2 the time on grass and 1/2 the time on sand then I would weight each by 50% and then apply that to the normal movement cost?