•I learnt about AI that has multiple attacks, AI that can move around after getting hit from player and more about how select node.
Goals
• Make an AI that can fight with different attacks.
Challenges faced and how I overcame them.
• The AI was not moving much after hitting the player.
Fix: I decreased the number of attack AI does before he starts to move and increased the distance number between him and player.
• AI’s hits were not registered.
Fix:Changed the collision sphere radius and it started working.
• Problems with the UI not showing the enemy health.
Fix: It was a problem with wrong variable being connected and the layer of the enemy health UI.
Testing
• AI not registering hit from the player.
Fix: It was a problem with animation timing to register the hit at swing. Just dragged the hit result from the player a bit before his animation of swing is completed.
• AI only using one Attack type.
Fix: The condition was the distance between the AI and the player. It was too big for the game area so decreased it and it started working.