Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Define The Enemy AI | Sistema de Animação do Unity
Jogo de Luta no Unity

Define The Enemy AI

Deslize para mostrar o menu

S3V2P1
  • Idle: This is the default state where the enemy is not engaged in any specific action. From this state, the enemy can transition to other states based on certain conditions;
  • Get Attacked: This state represents the enemy being attacked by the player. It triggers animations in response to taking damage;
  • Follow: If the player is within range but not too close, the enemy will follow the player, maintaining a certain distance to engage in ranged combat;
  • Dash: This action involves the enemy quickly moving in a specific direction;
  • Projectile: If the enemy decides to engage in ranged combat, it may launch projectiles towards the player;
  • Attack: This represents a generic attack action that the enemy can perform while in close proximity to the player;
  • Attack2: Similar to the "Attack" state, this is another type of attack action that the enemy can execute during close combat;
  • Idle After Finishing: After performing any action (whether it's attacking, dashing, or launching projectiles), the enemy will return to the idle state to await further commands or player interactions.

Conditions

  • Ranged: This condition checks if the player is within a ranged distance from the enemy. If so, the enemy will enter the ranged combat mode, which includes actions like running, dashing, or launching projectiles at the player;
  • Close: If the player is within close proximity to the enemy, it will enter close combat mode. In this state, the enemy will primarily focus on attacking the player with close-range attacks, such as attack1 or attack2.

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 13

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Seção 1. Capítulo 13
some-alt