Ok, thx. But what if i want to repeat the animation of the character walking until it reach the moveto goal?
I tried CCRepeatForever but didn’t work:
//CCAnimate::actionWithDuration(.2f, animation, false),
CCRepeatForever::actionWithAction( CCAnimate::actionWithDuration(.2f, animation, false) ),
CCMoveTo::actionWithDuration(3.0f, ccp(s.width/2+50, s.height/2)
), // or CCMoveBy
The sprite is placed, initially, at the center of the screen.