Hi,
I want to change from LogoScene to SplashScene after 0.5s. However, I wonder why following code is not work for me.
Anyone help me, please.
void LogoScene::onEnter() {
cout<<"onEnter"<runWithScene(scene);
}
Hi,
I want to change from LogoScene to SplashScene after 0.5s. However, I wonder why following code is not work for me.
Anyone help me, please.
void LogoScene::onEnter() {
cout<<"onEnter"<runWithScene(scene);
}
runWithScene() is for running the very first scene. You should use replaceScene() or pushScene() instead.
Thank Igor for your experience.
However, when I ran above code, the ‘changeScene’ method wasn’t called. I didn’t see “change scene” text in the output.
You should call parent class’ onEnter() in your onEnter() because there’s resumeSchedulerAndActions() call in it.