CCPoint pos1 = tmpPieces[i1][j1]->getPosition();
CCPoint pos2 = tmpPieces[i2][j2]->getPosition();
CCSprite* tmpSpr = tmpPieces[i1][j1];
tmpPieces[i1][j1] = tmpPieces[i2][j2];
tmpPieces[i2][j2] = tmpSpr;
CCActionInterval* move = CCMoveTo::actionWithDuration(0.2,pos1);
tmpPieces[i1][j1]->runAction(move);
CCActionInterval* move2 = CCMoveTo::actionWithDuration(0.2,pos2);
tmpPieces[i2][j2]->runAction(move2);
Directly setting positions worked ok, but I wanted to animate the swapping using CCAction, but in the above codes the runAction does not seem to work. I referred to the ActionsTest project and it does not seem like I coded anything wrong. IS there anything else I needed to do to get the CCMoveTo working?