Search Unity

Enemy attack difficulty

Discussion in 'Scripting' started by inthemilkywat, Feb 10, 2019.

  1. inthemilkywat

    inthemilkywat

    Joined:
    Dec 29, 2013
    Posts:
    56
    Right now I have an enemy that chases the player and attacks when in range and facing the player within a certain angle. Everything works fine but it's just too easy to dodge the attacks. I can just side step the sword attacks most of the time. How do I make the AI more difficult to dodge? Many games have it where the enemy attacks kind of follow the player. Are they just rotating the enemy while attacking the player?
     
  2. It is a game design question (the implementation can be a coding one), so it's up to you how you solve it, or you leave it however it is right now. You're the designer of your own game, take the responsibility and try to find a way you like it.
    There are examples of many solutions: like RPG-like chance-based attack/defenses, there is the skill based ones, when the enemies are physically attacking and you need to dodge them. But how you can dodge an attack is up to you to find out, it's your game.