Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17067

Error on "mainMenu::createScene()"

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 17067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>