I just tried to post a rather large and somewhat amusing post about how awful my current movement AI is...it works on the premises that if its X position and Y are greater then the pc then randomly move up or left. Genius eh? Anyway that post managed to disappear when I pressed space and was gifted with learning the forum rules (?) ah well.
To cut a long story short (relatively) my current movement AI is crud, it gets stuck in little corners and while it often does get to the PC it often doesn't.
I'm after advice on writing a pathfinding routine where to start and such, some example code is always helpful but I know its often too much to ask.
Specifics, my games turn based, always fort or a 16,12 grid with varying bits of impassable terrain and cover from ranged attacks.
I have attached my current movement "AI" (or the better part of it, its called several times for the same creature if it has more then 1 move a turn, it varries depending on what it is)
If I have been too vague in what I ask please ask for clarifican, i'm really at a loss of where to go, and I looked at that A* pathfinding and become very scared.
I think the below functions explain themselves rather well as they are pretty basic.
Thanks for any wise words...or unwise ones...any words will do really...
Rest of the games coming on well though.
To be no more, sad cure.