Hi, I create a sprite sheet using TexturePacker in my last project.
But when I add it to the game, the position that I put images was changed.
If I use this, (the code without CCSpriteFrameCache
CCSprite* bloco = CCSprite::create(“block.png”);
the position works perfect
But if I use the this,
CCSprite* bloco = CCSprite::createWithSpriteFrame(CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName(“block.png”));
the position was changed
Why this is happening?