Search Unity

Horror Ai script

Discussion in 'Scripting' started by bumbummen99, Sep 29, 2013.

  1. bumbummen99

    bumbummen99

    Joined:
    May 19, 2013
    Posts:
    10
    hey guys,

    im working on a small mobile game so, i need a script for an enemy.

    i have the animations like idle, attack, walk, run and so on. but i need a script for it.
    the enemy should act like the one in amnesia. that means he follows the player or teleports around.
    attack him and so on :D

    i hope u can help me with it.

    mfg :p

    ps: sry im a scripting noob xD
     
  2. Avo

    Avo

    Joined:
    Dec 4, 2010
    Posts:
    237
    You may want to look through some tutorials, the documentation and so on. You'll also want to look into behavior tree's and path finding algorithms. AaronGranberg has an excellent A* pathrfinding AI but you still have to tell it where to go. Clever AI that's fun to poke at is one of the big challenges of making a game.

    If you really want to dig in on this you can find some generalized tutorials on AI here but some are behind a paywall.
    http://aigamedev.com/

    You have of course, Aarongranbergs A* AI.
    http://www.arongranberg.com/

    You may also want to dig through some much more generalized tutorials on scripting. Unity has some professional tutorials here but you'll have to dig through them yourself to find what you need.
    http://unity3d.com/gallery/demos/demo-projects
     
    Last edited: Sep 29, 2013