PlaceholderGames / 2016-InfiniteReplayGame

A 2D post-apocalyptic run and gun game with a significant resource management element.
0 stars 0 forks source link

Ranged/Melee attacks for the AI #16

Closed Ryan-Fletcher closed 7 years ago

Ryan-Fletcher commented 7 years ago

Need to give the AI an attacking function for both melee and ranged attacks.

This will include a melee animation (use the mop weapon for now) that has a set attack speed with a delay to prevent spamming, and a ranged animation (use the gun weapon for now) that can target the player but keeps a set distance from them.

Also make sure the AI doesn't hunt down the player off camera when the player spawns.

Due: Wednesday 2nd

Ryan-Fletcher commented 7 years ago

The AI won't escape from the player when it reaches the set distance.

Ryan-Fletcher commented 7 years ago

Have got the raider AI to run from the player when within a certain distance.

Ryan-Fletcher commented 7 years ago

Wasn't able to implement a shooting mechanic for the AI.