I tried to changed a "high score" bool
to be true
and play a certain sound when the user gets a high score. The sound itself worked fine, but it was when I tried to set it the sound to only play on the high score if (HighScoreBool == true)
the app totally stopped working right.
Everything went grey and all I could see is the end of "high score" text in the bottom left corner. All images are gone, can't click anything, all I see is grey and a little bit of text in the bottom right.
I tried to undo, clean, and reopen up Xcode to no avail. At the moment, my project builds perfectly, launches perfectly (launch screen image works), even plays the background sound, but for some reason everything else is just gone besides a little of the high score text and the overall GREY screen.
Again, everything was working FINE until I tried to type this:
if (HighScoreBool == true) {SkAction playSound etc.}
And then the grey screen happened, and then even when I simply deleted the line of code to try to resolve the problem, the project still acted the same way: Grey Screen, text in bottom left corner.
Long Story Short: I feel like I've narrowed it down to the issue started when I attempting to write this: if (HighScoreBool == true)
but when I deleted that, same issue.
Please provide some insight as to what is going on so I don't have to rewrite the entire app.