I am working on a cocos2d-x project now and I have these code
CCAnimation* anim = new CCAnimation;
CCAction moveAction = CCAnimate::actionWithAnimation;
CCActionmoveForever = CCRepeatForever::actionWithActionmoveAction);
It says actionWithAnimation and actionWithAction is deprecated. So what is the correct method to use to fix these 2 warnings?