
05-08-2002, 09:06 PM
|
|
Banned
|
Join Date: Jan 2002
Posts: 960
|
|
|
Hmm...couldn't you use something like the A* pathfining technique?
Assign numbers from your current location to destination, all going fown one number. Destination is 8 tiles away, where you are would be 8, destination would be 0. From 8 you move to 7, things like that, and you could only move from a bigger number to smaller. And assign -1 to onwall...
I been meaning to try making something like that, never bothered though, mainly because I want a 2d array =P. I know it can be simulated, but it would be spiffy to have 2d arrays. |
|
|
|