This bug can be reproduced very simply. Just create two CCSprite's and move it one over another.
And this bug is only on iOS 5 (I've seen it on iPad2 and iPhone4s).
CCSprite *s1 = [CCSprite spriteWithFile:@"tex_uvw.png"];
CCSprite *s2 = [CCSprite spriteWithFile:@"tex_uvw.png"];
s1.position = ccp(0, 0);
s2.position = ccp(300, 300);
{
id a1 = [CCMoveBy actionWithDuration:1.0 position:ccp(100, 100)];
id a2 = [CCMoveBy actionWithDuration:1.0 position:ccp(-100, -100)];
id t = [CCSequence actionOne:a1 two:a2];
id t2 = [CCRepeatForever actionWithAction:t];
[s1 runAction:t2];
}
{
id a1 = [CCMoveBy actionWithDuration:1.0 position:ccp(-100, -100)];
id a2 = [CCMoveBy actionWithDuration:1.0 position:ccp(100, 100)];
id t = [CCSequence actionOne:a1 two:a2];
id t2 = [CCRepeatForever actionWithAction:t];
[s2 runAction:t2];
}
[self addChild:s1];
[self addChild:s2];
What can I do to fix this bug?
Source code for demonstration is here: http://rghost.net/32696441