ogrotten Posted October 5, 2018 Share Posted October 5, 2018 I have a .png with a deck of playing cards on it. Unless I missed something, TexturePacker doesn't have a way to build a .json file from an existing sheet where elements have known dimensions. Therefore, is there an Pixi method to define sprite frames from an existing texture? Quote Link to comment Share on other sites More sharing options...
bubamara Posted October 6, 2018 Share Posted October 6, 2018 you can create individual textures from spritesheet by passing frame rectangle to PIXI.Texture constructor http://pixijs.download/dev/docs/PIXI.Texture.html Quote Link to comment Share on other sites More sharing options...
ogrotten Posted October 6, 2018 Author Share Posted October 6, 2018 Thanks for the reply. Excellent reference. Quote Link to comment Share on other sites More sharing options...
jest Posted October 6, 2018 Share Posted October 6, 2018 You can download imagemagick and slice everything up if the frame size is the same and then drag them into texture packer. convert -crop frameSizexframeSize image.png output_%d.png jonforum 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.