I am using a script called “MainMenuScene.cpp” and the game is supposed to switch to the scene from “IntroScene.cpp.” I am using
auto menu = MainMenu::createScene();
Director::getInstance()->replaceScene(TransitionFade::create(15, menu, Color3B(0,0,0)));
but it is giving an error that I don’t really understand, it says “Undefined Symbol: mainMenu::createScene();”
I do not understand how this is here, because in “MainMenuScene.h,” it is creating MainMenuScene.cpp
6 posts - 3 participants