Making AI opponents more challenging
So far, your undead lackey is equipped with a (more or less) keen sense of vision, allowing it to peer into the abyss of the dungeon, scouting for unsuspecting prey. However, even the sneakiest of thieves can unexpectedly bump into a hindrance while tip-toeing through the shadows. The cunning Lichlord knows this all too well and has bestowed upon his minions the added gift of acute hearing, so not even a pin drop goes unnoticed!
In this section, you will implement a noise system based on player character movement. The game logic you will be adding is based on the following requisites:
- The thief character will make a noise when sprinting
- The noise level will be based on the character statistics
- The AI minions will react when they hear a noise
So, open your IDE, as it’s time to add a new component feature to your hero!
Making some noise
In order to let your thief character make noise while it’s sprinting...