I need to flip a card to see its back, then side and then front gradually with animation. How I can do this with cocos2d-x? I have took a look on
RotateBy in 3D tests. They are very close to the one I want to, the only problem is that when the sprite turns around I see not the back (as it should be another texture), but the same spite from back camera. I understand that I should use 2 sprites to get the effect, but how I should do that, I don't know. Should I position 2 sprite with different Z order?
I am pretty sure that I should replace the texture of the sprite but the problem is that when I rotate with
OrbitCamera by 90 degree and replace the texture with back image of the card, then it does remain 90 degree rotated. Instead it turnes so that the whole texture was visible. But it had to be 90 degree turned and see from the side as one line.