Search code examples
htmlcreatejstexturepacker

Texture packer trim sprites with CreateJS


Does Createjs have any support for trimming sprites with texturepacker ( removing the alpha pixels in the actual sheet) but displaying the sprite with the alpha in game.

If it does not support it does anyone have any suggestions on adding this or how to go about adding it.

Thanks!


Solution

  • TexturePacker comes with an exporter for CreateJS/EaselJS. It supports trimming.

    CreateJS receives the sprite with the trimmed size but the registration point is adjusted to compensate for this.

    Is it not working for you? What is happening?