SDL A* algorithm confusion :S

I cannibalized LazyFoos tutorial of tiling, and tryed to creat something out of it.
The A* tutorials used a muiltidementional array, and the tutorial used a .map file. The character moves the same distance as the tiles, as if it was a moving tile, if it's a easy fix, and if it would make the A* easyier to do, might as well fix it.
mainly the tutorials use sonthing like this:
blahblahblah[a][b];
I use linux if that matters.
http://www.pastebucket.com/19775
So yea my point is to get the ghost to follow the player/knight, and to end up following the player side by side.
I'm gonna use bressenhams algorithm after this, i think after i do this bresenhams will be less frustrating.
Topic archived. No new replies allowed.