Quote:
Originally posted by Frolic_RC2
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.
|
The pathfinder tyhm create will be able to track between many levels. not just within one level.
This one == hard to make if he has to go around a few levels to get to the one the player is in.