Summary
Feedback is an important topic in video games. It gives valuable information to the player, such as the location of enemies if there is a 3D sound setup, distant shooting depicted by muzzle flashes in the background, life bars indicating that the player is about to die, animations that react according to the player's movements, and so on. In this chapter, we saw different forms of feedback, sounds, VFX, animations, and the UI, which we already created in Part 2 of this book. Here, we learned how to use scripting to connect the UI to the game.
Now, you can script the UI, particle systems, and sounds to react to the game status, including changing the score text or the life bars of the UI or playing particle and sound effects when the character shoots. This improves the player's immersion experience in your game.
In the next chapter, we are going to discuss how to create a challenging AI for our enemies.