Hi Everyone,
Just started working with cocos2d, so far ive set up different scenes eg main menu, settings and about. Ive added some background music to the main menu scene like so:
Code:
if( (self=[super init] )) {
if(![[SimpleAudioEngine sharedEngine]isBackgroundMusicPlaying])
{[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"TileMap.caf"];
}
return self;
}
The music plays over all scenes now, ive searched around but cant find much info on setting up a settings page where i can toggle the music on/off and even passing the music to the settings scene.
Cheers
---Edit---
Solved!!