top of page
Search

Implemented the Enemy AI and Health System

  • John Greaves
  • Oct 27, 2020
  • 1 min read

After the class was over we discussed what to do next, mostly worked on catching everyone up and checking up on all of our work since we have to get ready for build 2. After the meeting, I was assigned to do the enemy AI. I ended up using some generic cylinders for the enemy models since I needed a stand-in. Basically, I made it so the enemy would fly around in a straight line and shoot at the player every second, most of the variables can be changed so we can change anything if we want to balance things out.


Since I made it so the enemies can attack the player I also needed to write some player health and a loose condition. I added to the player script a health counter and some methods that would check if they have been hit. If the player has been hit a select amount of times (3 for now), they lose.




 
 
 

Recent Posts

See All
Week 8 PPJ

This week was a mix between trying to make my own sounds and failing miserably and continuing different vfx ideas. starting with the...

 
 
 

Comments


  • White Facebook Icon
  • White Twitter Icon
  • White Instagram Icon

© 2021 VOID GAMING

Thanks for submitting!

bottom of page