Just started working with cocos2d, so far has revealed various scenes, for example, the main menu, settings and much more. Ive added some background music to the main menu scene, for example:
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"TileMap.caf"];
The music goes to other scenes, but when I return to the main menu scene, the sound restarts.
I did it only after 3 weeks, so be easy on me :)
Thanks in advance.
source
share