Tuesday, May 24, 2011

Setting AI Variables and Basic Event Handling

 

This video demonstrates how to set variables in another AI.  For those of you that haven't been watching the videos, the AI modules contain all the code to run the game.  You define behaviors and actions in the AI and then attach it to a game object.  The game itself has an AI that is responsible for handling all of the events that are generated during the game such as screen touches, mouse button clicks, etc.  The video shows how to pass events to a secondary object from the game AI and how to do the same with data.
I'm hoping to start doing a few videos a night so that we can make some progess.  The last couple of nights have not worked out the way I wanted because the hard drive on my computer is getting too full of all the videos and so it crashes in the middle of recording.  Hopefully I will be getting another hard drive soon to clear out the videos.

4 comments:

  1. Hi,

    thanks for this tutorial. I've just a question : at the end, when I add the IA to the ball it works but even if I click far away from the ball. It seems thats the ball sensor area for clicking does not work. How do I mak it work? thanks !

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Hi, I'm a newbie at Shiva world.
    At first, congrats about your book. When will be printed?
    Do you develope templates/frameworks for Shiva? Where do you live?
    BR,
    Pedro Jafet

    ReplyDelete