New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HelloWorld::init() does not get called when HelloWorld::createWithPhysics() is called. #17093
Comments
The problem lies in lines 41 through 56 of CCPlatformMacros.h. Doing the changes I stated above to HelloWorldScene.cpp avoids running the Changing line 8 of HelloWorldScene.cpp to the following: auto scene = HelloWorld::create();
scene->initWithPhysics();
return scene; fixes this issue temporarily. The only problem I see with doing this is that |
Just noticed that the proper way of initiating a scene with physics now is to change line 16 of HelloWorldScene.cpp to the following: if ( !Scene::initWithPhysics() ) |
Omg you solved my problem thank you. |
Steps to Reproduce:
return HelloWorld::createWithPhysics();
The text was updated successfully, but these errors were encountered: