I’m working on a game where you play music of various genres to please a crowd. The crowd randomly decides a genre every few seconds. To check if the genre the player is using is correct, I have a function that compares the user’s genre to the audience’s randomly generated genre.
This works correctly. However, I want the audience members to dance when the music is played (pressing left mouse button) instead of automatically after a set time if the integers simply match. Theoretically, the following function should be working:
However, when pressing left mouse button, the audience member does nothing.
I currently have the audience member’s actions in a simple loop:
Spawn playing idle animation > Randomly select a genre every 5 seconds > 3 second delay for player input > Check if genre matches > Play proper reaction
Why isn’t my left mouse button function working? Theoretically it should be working normally, but nothing is happening.