11/10/2016 – Artificial Intelligence

Today I learnt about AI and how to implement it into the game.

For AI to be successful, it needs AT LEAST the following:

  • Ability to move up, down, left and right
  • Speed
  • Controlled by itself (Its the illusion)

 

There are 3 types of AI Movement:

  • Basic
  • Follow like ghosts
  • Follow horizontally

 

I opted to try the basic movement, which allowed the enemy to move from side to side along a platform, and when it collides with an “invisible wall” either side, it bounces off and goes in the opposite direction.