I am making a game (obviously) and to make it a remotely good one i need to have an AI. The problem is, where do I begin? I haven’t done anything like this, and any help is appreciated. Links, other posts, tutorials, anything will suffice. Also note that I would like to have more than one enemy on the screen at once, so each of them will need an AI. Like I said, any help is appreciated. Thanks!
Share
first: AI don’t need/use Cocos2D classes
you need to build AI specific classes that controls your game objects/sprites etc…
second: this link covers some basics of game AI
and this post explains how to make a finite state machine (FSM) in Objective C
a FSM is the most simple technique to build an AI in a game