Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to create an AI for an actor ?

YenzuYenzu Member Posts: 48
How to create an AI for an actor


  • ericzingelerericzingeler Member Posts: 334
    Using rules and behaviors
  • grimtoothgrimtooth Member Posts: 69
    Nobody is going to be able to give you this one... AI can be simple or complex but can almost never be copy pasted from one project to another unless you are making a clone or sequel to a game you have already created.

    Start by thinking in very general terms and making a short list, then expand on each point in the list.

    If the actor is a monster and you want it to attack the player, your list might look like:
    1. monster sees player
    2. monster moves towards player
    3. monster attacks player

    Now we need to expand on part 1, how does the monster see the player? probably based on distance, but can the monster see through walls. Does the player have any abilities or items that can make the monster not see him? Can all monsters see the same distance?

    Unfortunately it takes quite a while to try to think through, but you have to do it one step at a time and make one rule at a time as you decide what exactly you need the actor to do.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,914
  • jamie_cjamie_c Member, BASIC Posts: 5,591
    The kind of AI you need totally depends on the specific game you are creating, if you want even any idea's to help you along you're going to need to supply a lot more information than what you have so far.
  • WingmanappsWingmanapps Member Posts: 458
    where do babies come from?

    People that are grounded don't hang on trees

  • BoomshackBarryBoomshackBarry Member Posts: 712

    where do babies come from?

    Google it, you'll be amazed ;)

    Why not check out my development blog?

  • YenzuYenzu Member Posts: 48
This discussion has been closed.