-
Couldn't load subscription status.
- Fork 7.1k
Closed
Description
version: v3.8
issue: The sprite under the SpriteBatchNode doesn't support setFlipped.Because updateTransform method reset the vertices conflict with #13138.
reproduce:
SpriteFrameCache::getInstance()->addSpriteFramesWithFile("blocks9ss.plist");
auto spritebatchnode = SpriteBatchNode::create("blocks9ss.png");
this->addChild(spritebatchnode);
// add "HelloWorld" splash screen"
auto sprite = Sprite::createWithSpriteFrameName("grossini_dance_01.png");
// position the sprite on the center of the screen
sprite->setPosition(Vec2(visibleSize / 2) + origin);
// add the sprite as a child to this layer
spritebatchnode->addChild(sprite);
sprite->setFlippedX(true);
sprite->setFlippedY(true);
this->scheduleOnce([=](float){
sprite->setFlippedX(false);
sprite->setFlippedY(false);
}, 2.0, "lbd");