cocos2d-x v3.6 FlipY3D不会在Y中心位置翻转
当我尝试切换到默认hello world模板的FlipY3D图层时,图标会翻转,但也会移动到上角 所以,它不再在Y中心位置翻转。它与v2.2.6一起工作 以下是我添加到HelloWorldScene.init()方法末尾的代码: 有人能帮我查一下吗cocos2d-x v3.6 FlipY3D不会在Y中心位置翻转,cocos2d-x,Cocos2d X,当我尝试切换到默认hello world模板的FlipY3D图层时,图标会翻转,但也会移动到上角 所以,它不再在Y中心位置翻转。它与v2.2.6一起工作 以下是我添加到HelloWorldScene.init()方法末尾的代码: 有人能帮我查一下吗 非常感谢 我建议您重新检查锚点。它应该是Vec2(0.5,0.5)或只是Vec2::ANCHOR_MIDDLE。我建议您重新检查锚点。它应该是Vec2(0.5,0.5)或只是Vec2::ANCHOR\u MIDDLE // add "HelloWor
非常感谢 我建议您重新检查锚点。它应该是Vec2(0.5,0.5)或只是Vec2::ANCHOR_MIDDLE。我建议您重新检查锚点。它应该是Vec2(0.5,0.5)或只是Vec2::ANCHOR\u MIDDLE
// add "HelloWorld" splash screen"
auto sprite = Sprite::create("HelloWorld.png");
// position the sprite on the center of the screen
sprite->setPosition(Vec2(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));
NodeGrid* lNodeGrid = NodeGrid::create();
this->addChild(lNodeGrid);
// add the sprite as a child to this layer
lNodeGrid->addChild(sprite, 0);
CCFlipY3D* mFlipScreenY3D = CCFlipY3D::create(1);
lNodeGrid->runAction(mFlipScreenY3D);