Getting things to find a path...

Subscribe to Getting things to find a path... 6 posts

avatar for Scalliwag Scalliwag 2 posts
Flag Post

Ok, this is going to be impossible to explain…

I have a little person and I tell him go move to the right side of the screen, so far what he does is go straight for the destination, which is good, that’s all I’ve told him to do. Now if I put a wall in the way I can’t think of how to program the little guy to go around the wall, I can’t even think of how someone would go about doing that :S

If anyone can both understand what I mean and lend a hand that would be GREAT!!

 
avatar for Woad Woad 99 posts
Flag Post

Look up pathfinding algorrithims and/or A* (A Star). Tony.pri.ee also has a couple lessons about pathfinding.

 
avatar for Scalliwag Scalliwag 2 posts
Flag Post

cool ^^ thanks, this is starting to make sense :S lol

 
avatar for Coolspeed Coolspeed 155 posts
Flag Post

Whatever that means.

 
avatar for Woad Woad 99 posts
Flag Post

Np.

 
avatar for dazzer dazzer 724 posts
Flag Post

Pathfinding algorithms are a complex topic. I haven’t fully wrapped my head around it either :) though I suspect I will have a go at it at the end of the year.