In this tutorial series, you will learn about the GameplayKit framework added in iOS 9 and OS X El Capitan. In the second part of this series, I will teach you about agents, goals, and behaviors as well as advanced pathfinding.
Finished project for the Tuts+ tutorial: An Introduction to GameplayKit: Part 2
Read this tutorial on Tuts+