![]() ![]() This.sprite = cc.Sprite.createWithSpriteFrameName("00. I'm loading the spritesheets this way: var cache = cc.SpriteFrameCache.getInstance() Ĭache.addSpriteFrames("ist", "srcSprites/spritesheet.png") However, you will most likely want to add more onto it to make the game your own. Trimmed vs untrimmed sprite sheet: Save memory and increase performance by removing transparency. - These are my personal 'must-have' addons when playing GMod, hence the name 'Essential'. The animation still plays as expected because the animation frames reference the identical sprites. ![]() Copy this into file: 'java -jar 'C:\Users\fat2019\Desktop\gdx-texturepacker-3.2.0\gdx-texturepacker.jar' Change path to your own where gdx-texturepacker.jar file is. You could, for example, create a sprite sheet for every level, because no 2. TexturePacker detects these identical sprites and only adds them to the sprite sheet once. Try this: Create a txt file and change its extension to '.bat'. 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. First of all, using file formats such as png or jpeg can reduce the total. 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)) Batch converting images to pvr or pvr. Free texture packer creates sprite sheets for you game or site. But as I understand the trim mode in Texturepacker: "Crop Keep position" should work this way: The TexturePacker website has this to say on Batch Converting: Write a simple batch file containing these lines to do as mass conversion of images: echo off for X in (.png) do (C:\Programme\TexturePacker\bin\TexturePacker.exe X) Please replace with your parameters needed. IMPORTANT: I don't have time to imporove this app anymore.![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |