I have an AtlasSpriteManager as a property of an custom object.
In the manager I have two AtlasSprites (one of a button unpressed, and another pressed down). In their instantiation I set their initial position like so:
// in the init
withPosition:CGPointMake(50.0, 100.0)
// elsewhere, in the init method
sprite.position = newPosition; // the point specified above
I then add the manager as a child of a layer, to be added to a scene, then displayed.
[self addChild:testButton.spriteManager z:0 tag:kTagSpriteManager];
I then run it in the simulator...
The first sprite is at the proper position. However, the second appears to have it's x position off by -50, and the y position correct.
The position property in the sprite manager is never changed, nor are the anchor points. Only the position properties of the sprites are adjusted.
When displaying the x/y positions with nslog, the points are 50.0, 100.0 as specified.
Any insight as to what I'm doing wrong?