Yeah, it takes up to 10 seconds to wait it to resume.
Not sure if that is because my game has huge assets :/
Right now, I’m using the default cocos2d-x project setup where it calls
CCDirector::sharedDirector()~~>pause; in applicationDidEnterBackground
CCDirector::sharedDirector~~>resume; in applicationWillEnterForeground
Do I have to add that pauseSchedulerAndActions block of code when applicationDidEnterBackground?
or the default Cocos2d-x project settings should be all set?
I’m using this version of cocos2d-x > cocos2d-2.0-x-2.0.4 maybe this old version is not stable?
So, if there’s no other way to make it load faster,
where do I add that loading bar ?
Do I call it in applicationWillEnterForeground? and when should I remove it (or unscheduled it)?
Hope you can help me.
smit patel wrote:
10 seconds qst ?? wow.
I hope you are pausing your game on interrupt like below,
CCArray* childs = this~~>getChildren;
CCSprite *sprite = child;
=> what are you doing on applicationDidEnterBackground() & applicationWillEnterForeground()?
=> and for displaying loading bar you can schedule method