Having enemies fight you

How would i code AI enemies to fight me and to know when to swing there weapon when they get close to me. I also have other enemies who throw things at you how would i code that and tell them to throw at certain times and to be able to dodge the throws so they do not always hit me?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    I'd recommend looking at some AI and Pathfinding tutorials and templates. @jamie_c has a nice video for a method of moving enemies towards the player. You could start there.

  • allc1865allc1865 Member, PRO Posts: 777

    or DeepBlueApps...they have templates like that

Sign In or Register to comment.