So I recently made a Five Nights at Freddy’s game in CoSpaces, and part of the game is that you have to listen to a phone call before the main part of the game starts. So I was wondering how I could make it so if somebody finds the phone call boring, they can skip it and get to the actual game. Here is an image of my code:
So in the second photo, I have the SFX on an infinite loop, and once the last SFX plays it bumps up the phone var by one, and if the phone var equals one, it should break out of the loop. Then in the first image it says if the ‘phone’ is clicked, set var of ‘phone’ to ‘two’. And the second image shows, if ‘phone’ equals ‘two’ break out of loop. It doesn’t work though, and I don’t know why. A possible answer would be that it’s waiting for the sound effect that’s playing to be done playing, so I added a ‘stop sound effect 1’ for all of them. It still didn’t work. If you have an answer to this, it would be very helpful! Thank you in advance!