cocos2dx 云彩特效,就是一张云彩Png 图片从屏幕左边移动到右边,再从左边移动到右边
yuncai = static_cast<ImageView*>(Helper::seekWidgetByName(la, "yuncai")); Sequence* seq = Sequence::create(MoveTo::create(20, Vec2(s.width, yuncai->getPosition().y)), Place::create(Vec2(-yuncai->getContentSize().width, yuncai->getPosition().y)), nullptr); yuncai->runAction(RepeatForever::create(seq));