auto m_sprite = Sprite::create("HelloWorld.png"); this->addChild(m_sprite,0); auto m_flipX = FlipX::create(true); m_sprite->runAction(Sequence::create(m_flipX,NULL));
上面这一段实现图片的翻转没什么问题。
auto m_sprite = Sprite::create(); this->addChild(m_sprite,0); auto m_content = Sprite::create("HelloWorld.png"); m_sprite->addChild(m_content,NULL));当时这一段就实现不了X轴翻转,是什么问题导致的呢?有待自己找出答案。 原文链接:https://www.f2er.com/cocos2dx/342291.html