Okay I'm stuck on a part with the code like you know how splashy fish and flappy bird make the game over sound when you die and the sound when you tap it the bird makes a sound I'm trying to do something like that, but I can't figure out how I'm stuck trying to make it where when you crash it makes a crash noise and game over and I'm also trying to get it to where you can tap it and it makes a noise when you tap I have the audio I just don't know how to input it.import SpriteKitclass GameScene: SKScene, SKPhysicsContactDelegate { var score = 0 var scoreLabel = SKLabelNode() var gameOverLabel = SKLabelNode() var goat = SKSpriteNode() var nite = SKSpriteNode() var labelHolder = SKSpriteNode() let goatGroup:UInt32 = 1 let objectGroup:UInt32 = 2 let gapGroup:UInt32 = 0 << 3 let playPopAction = SKAction.playSoundFileNamed(Powerup.mp3, waitForCompletion: false) var gameOver = 0 var movingObjects = SKNode() override func didMoveToView(view: SKView) { self.physicsWorld.contac
Topic:
Programming Languages
SubTopic:
Swift
Tags: