This.sprite = cc.Sprite.createWithSpriteFrameName("00. Some of the features are disabled, like better optimized layout, but depending on your project that might not matter. I'm loading the spritesheets this way: var cache = cc.SpriteFrameCache.getInstance() Ĭache.addSpriteFrames("ist", "srcSprites/spritesheet.png") TexturePacker actually works fine without registering. So if I will load a sprite with at the left side 20px of transparent area a setPosition to X = 0 will put the sprite 20px far from the left border, so ? Well it do not work for me, and in cocos2d the trasparent area is not considered. The sprite position will be relative to the original transparent area and not the colored area ? Is this right. "All the transparent background is removed and the information about the position of the colored area within the original sprite is saved in the plist file"Īs I load the plist file in COCOS2d, the position of the colored area is remembered and if I do in cocos2d: tPosition(new cc.p(0,0)) But as I understand the trim mode in Texturepacker: "Crop Keep position" should work this way:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |