Hi guys,
I am working on a cocos2d-x project now and I have these code
CCAnimation* anim = new CCAnimation;
anim~~>initWithSpriteFrames;
CCAction moveAction = CCAnimate::actionWithAnimation;
CCActionmoveForever = CCRepeatForever::actionWithActionmoveAction);
sprUgug~~>runAction(moveForever);//CCAnimate::create(anim));
sprUgug~~>setPosition);
this~~>addChild(sprUgug, 1);
It says actionWithAnimation and actionWithAction is deprecated. So what is the correct method to use to fix these 2 warnings?