Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8928

So I'm not sure exactly how to use pathfinding...

$
0
0

I've looked at the cookbook and the GSInvention maze pathfinder and I'm seeing how paths are mad. However, I'm not actually seeing how to utilize the path after it's been made. How do you make, for example, an enemy spawned in a random location always try to go toward the hero actor, making its way around objects and such? The cookbook version is very much something turn based, but how about something realtime? Sort of a pac-man ghost?

It feels like it would have to be something where you spawn your grid, then have each grid box fill up a table with their x and y locations, then tell the enemy actor to go from one to the next or something?


Viewing all articles
Browse latest Browse all 8928

Trending Articles