开发者

Cocos2d background music preload

开发者 https://www.devze.com 2023-04-04 04:05 出处:网络
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 i

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消