Fricken Hamster Posted November 12, 2013 Share Posted November 12, 2013 Hey,How would I trim off transparent pixels around a sprite, leaving the smallest sprite without trimming off anything thats not transparent?Getting a bounding box around non transparent pixels would work too.If that is impossible, can I check pixel values at coordinates for sprites?AS3 equivalent would beBitmapData.getColorBoundsRect Thanks Link to comment Share on other sites More sharing options...
rich Posted November 12, 2013 Share Posted November 12, 2013 You'd do this as part of the pre-processing work, not at run-time. Invest in Texture Maker, it's invaluable. But a free alternative is the excellent Shoebox. Although if you're used to Flash then just dump all the PNGs into a Flash library, select them all and "Generate Sprite Sheet" from them. Needs CS6+ Link to comment Share on other sites More sharing options...
Terumi Posted November 12, 2013 Share Posted November 12, 2013 In which format do you export an animation in shoebox?I tried js/xml but I couldn't import it anyhow? Link to comment Share on other sites More sharing options...
rich Posted November 13, 2013 Share Posted November 13, 2013 Starling / Sparrow format should work (and then the XML loader in phaser) Terumi 1 Link to comment Share on other sites More sharing options...
Recommended Posts