Ugh, ran into an issue. I've been "repeating" my grass background.png, and when I had it as a Sprite it worked very well. Now with AtlasSprites I get a "border" effect between the two AtlasSprites:
bg.png in this example is 1024 pixels wide.
Before (no "border effect"):
Sprite *blabla1 = [Sprite SpriteWithFile:@"bg.png]
Sprite *blabla2 = [Sprite SpriteWithFile:@"bg.png]
blabla1.position = ccp(0, 0);
blabla2.position = ccp(1023, 0)
Now (You see a vertical line between the two AtlasSprites):
AtlasSprite * blabla1 = [AtlasSprite spriteWithRect:CGRectMake(x, y, w, h) spriteManager:backgroundNode];
blabla1.position = ccp(0, 0)];
AtlasSprite * blabla2 = [AtlasSprite spriteWithRect:CGRectMake(x, y, w, h) spriteManager:backgroundNode];
blabla2.position = ccp(1023, 0)];
I tried setting blabla2's position to a lower value, like 1020 or 1000 but the problem still persisted. I also tried changing the z-order, but to no avail. I'm hoping I'm not the first to encounter this issue. Grateful for any advice,
Nicke.