Hi, to everybody
I have a strange problem with the position of a sprites on screen.
The two sprite have differente position but the same animation assigned by RepeatForever Action, but when run the app the sprites are on same position. It 's a cocos bug ?
// create an Animation object for animating sprite.
cocos2d::Animation *anm= Animation::createWithSpriteFrames(vec);
cocos2d::Animate*ac=cocos2d::Animate::create(anm);
cocos2d::RepeatForever *walkRepeat= cocos2d::RepeatForever::create(ac);
this->sp_Mysprite=cocos2d::Sprite::create();
this->sp_Mysprite->setPosition(500, 500);
this->sp_Mysprite->runAction(walkRepeat);
this->hellosprite = cocos2d::Sprite::create();
hellosprite->setPosition(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y);
this->hellosprite->runAction(walkRepeat);
// add the sprite as a child to layer 0
this->addChild(this->sp_Mysprite, 0);
this->addChild(this->hellosprite, 0);
....
thanks in advance.