Hello. I made a flappy bird themed game. Everything is great, however I want to add a sound every time the screen is tapped. I create the app on Xcode using swift.
Remember Stack Overflow is your coding question friend.
Oh for speed purposes I would initialize my sound when the view controller is loaded, not every time I touch the screen. The only part of the code in touchesbegan is the AudioServicesPlaySystemSound(soundID);
Also make the sound very short or you’ll drive the user crazy.
Totally agree with bjet767 about makign it short or even allowing it to be switched off. Its very easy when developing to think it adds to the experience but when your using it it can become VERY annoyuing