mokargas Posted December 2, 2013 Share Posted December 2, 2013 Hey all, loving Phaser. I'm a noob. Is it possible to load a JPG or animated GIF? So far I've only got the examples to work with PNG. No error is thrown when I select a JPG or GIF asset, it simply doesn't appear? Link to comment Share on other sites More sharing options...
rich Posted December 2, 2013 Share Posted December 2, 2013 jpegs work fine (there are several used in the examples) but an animated GIF won't render the animation, just the first frame. Link to comment Share on other sites More sharing options...
mokargas Posted December 2, 2013 Author Share Posted December 2, 2013 Thankyou Rich. I found out my JPG was corrupted. I guess to get the gif to work, it's just a matter of breaking it down into a spritesheet of individual frames. sbonavida 1 Link to comment Share on other sites More sharing options...
rich Posted December 2, 2013 Share Posted December 2, 2013 Yeah, there are tools out there to do that for you. sbonavida 1 Link to comment Share on other sites More sharing options...
mokargas Posted December 2, 2013 Author Share Posted December 2, 2013 For those that follow, I found a passable tool to do this on Github. It's a Photoshop script https://github.com/mediochrea/SpritePlane menthos984, Lypzis and sbonavida 3 Link to comment Share on other sites More sharing options...
Recommended Posts