Wednesday 2 May 2012

EnemyAI...


I chose to use a c sharp script that projected an invisible line that would locate the player. This would allow the enemy to know where the player was. The script also moved the enemy towards the player at a certain rate and rotation. As the enemies spawn they will instantly locate the player and change their orientation accordingly. Time allowing I could change the speed variable as the gameplay goes on to increase the difficulty over time.

Initially the health system was scripted with a targeting system. The player would be able to press any button (tab while testing) to cycle through the enemies and only that enemy could be damaged. This proved to ruin the flow of the game also the target would be highlighted this retracted from the enemy model's appeal and would ruin the flow of the game. Also the enemy could not give damage to the player without facing them, since I have updated the 'enemyAI' script to find the player quickly therefore the enemy will always be facing the player.

No comments:

Post a Comment