I am developing an IOS app usi开发者_StackOverflow中文版ng cocos2d and the SimpleAudioEngine for playing a background music in different scenes. The problem is that if a preload the background music it plays in the first scene but it is stopped when i turn to a different scene. If I do not preload the background music it is continuously played from one scene to another. Any idea?
Andrea
Just a try( i never used it ).
Instead of using SimpleAudioEngine in your scene , Use it in AppDelegate.
精彩评论