////////////Template code //////////// Chunk 1 //Make sure your class can receive contact info @interface MyGamePlay : SKScene //Make sure you designate your class as the one to receive the info self.physicsWorld.contactDelegate = self; //Make sure all the objects that you want info about their collisions have their //mask set paddle.physicsBody.contactTestBitMask = 0x01; // Do something when you find out about a collision - (void)didBeginContact:(SKPhysicsContact *)contact { NSString *nameA = contact.bodyA.node.name; NSString *nameB = contact.bodyB.node.name; if(([nameA containsString:@"Ball"] && [nameB containsString:@"Paddle"]) || ([nameA containsString:@"Paddle"] && [nameB containsString:@"Ball"])){ SKAction *paddleAudio = [SKAction playSoundFileNamed:@"sound_paddle.m4a" waitForCompletion:NO]; [self runAction:paddleAudio]; } NSLog(@"\nWhat collided? %@ %@",nameA,nameB); }