ABSTRACT

Here, we have created a new instance of AIPlayer named Buddy. Buddy is initialized using the datablock we created above (BlueGuy).

7.2.3 AIPlayer Movement Out of the box, AIPlayer has four methods and two callbacks associated with movement. Additionally, there are resources on the GarageGames site dedicated to enhancing and evolving AIPlayer to do more. However, for basic AI behaviors you will fi nd that this small set is quite suffi cient.