Changing a scene can take some time, so I want to change the color of a button before replacing the scene, so the user can tell that the button press was recognized.
I’m doing this:
settingsButtonSprite->setColor( ccc3(196,255,0) ); CCDirector::sharedDirector()->drawScene(); CCScene* scene = SettingsScreen::scene(); CCDirector::sharedDirector()->replaceScene( scene );
… but the scene is not being drawn before being replaced. Am I doing something wrong?