I have just finished completing what may have been the hardest part of this entire project. Path finding. Although there are a lot of functions already created for path finding, it's all about how you use it and when you need it. All of the AI's path finding is done in real-time. This means that you can block their path and they will still do anything they can to reach their destination.
Meet Jake, our first NPC. We put him in a course and told him get to the end.
Green indicates that the location is clear for the AI to navigate, while the red indicates it is not.
I wanted to see just how smart Jake really was, so I extended his course drastically. But I left him a treat!
Yes, I added cheese to the game. Just for Jake. And for you to eat of course.
I thought I would should you guys that Jake can recalculate a path in real-time.
Pretty cool huh?
Don't forget to tweet out this post and share it with all your friends! Help spread the support! Thanks so much!
If you have any questions, comments, or ideas... Send them my way with the contact form or post them below in the comment section!