issues
search
cocos2d
/
cocos2d-x
Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.02k
stars
7.05k
forks
source link
fix position errors
#20725
Open
woaicandy
opened
2 years ago
woaicandy
commented
2 years ago
I used initWithSpriteFrame and spriteFrame->getOffset() is not zero, so _unflippedOffsetPositionFromCenter is not zero.
used initWithFile ,the position will be wrong,because _unflippedOffsetPositionFromCenter is not reset.