9 November 2015

How to make a button play a sound in XCODE 7!

9 November 2015 · 9:37

Space play/pause · J/L seek 10s · [ ] previous/next

Summary

Demonstrates Xcode 7 setup: adds Audio Toolbox, imports it, declares two system sound IDs, and creates two button actions. Uses blood1 and blood2 M4A files, preloads them in viewDidLoad, links Touch Up Inside actions, and confirms both sounds play. After hours of trial and error, proposes collision-triggered sounds and more buttons; background looping remains unresolved.

Insight

The speaker shifts from copying tutorials to independently explaining reusable game-audio patterns.