Se rendre au contenu


Alien AI

The goal of this project is to create an AI more complex than what I was used to making. I tried to ensure that its actions and behaviors resemble those of an alien, like the ones we see in movies or video games. For example, it will be able to analyze you rather than attacking you directly, or follow your tracks if you're not too far from it. I will now show you a bit more detail about each of its different behaviors.

​



Patrolling


The alien will have several areas it can navigate through, with each area containing several points that it will randomly choose to move toward.


Sense of hearing


The alien can detect the player by sound. If the player runs, it will hear and move toward the source of the noise, and if it sees the player, it will start chasing them.

Follow the player's steps


The alien can also track the player's footprints if it doesn't see them but is close by. For example, there will be several areas where the alien's behavior changes depending on the player's location. If the player is in the area and the alien is close, this is when the alien will start tracking the player’s trail.


Move to the last player's location  

​

If the player is in the same area but the alien is far away, and the player has the alien in their line of sight, the alien will move toward the player's last known position.  

Analyzing behavior  

​

If the player and the alien cross paths while being close, the alien won’t attack immediately; it will behave as if analyzing the player. However, if the player turns their back or starts running, this will trigger an aggressive response from the alien, and it will switch to attack mode. If the player runs and is spotted by the alien, it will start chasing at high speed.


Attack the player 

​

If the player is spotted and the alien is within range, it will attack the player, circling around them and launching attacks. After a certain number of attacks, it will perform a heavy attack. If the player is at a certain distance, the alien may leap at them while attacking.

Move in air ducts

​

If the player is in specific areas and the alien is far away, and the player doesn’t have the alien in their line of sight, the alien will use a teleportation ability to appear near the player.

Move around the player while he's hiding

​

If the player is hidden, the alien will change its patrol mode. A large rectangular area with several points will be drawn around the player's location, and the alien will select points that are closer or farther from the player to move to. After a certain amount of time, it will return to its default patrol mode.