mgkrp Posted February 28, 2015 Share Posted February 28, 2015 Hi all,I have a few years of programming experience and I'm new to Phraser. I recently got introduced to the concept of sprites. While the phaser tutorial did teach me a thing or two of loading static images or moving animations, I can't find anything that would help me load something like this seperately:http://opengameart.org/sites/default/files/hyptosis_tile-art-batch-1.pngCan anyone please give me a pointer? Link to comment Share on other sites More sharing options...
Tom Atom Posted March 1, 2015 Share Posted March 1, 2015 Hi, go to http://examples.phaser.io/ and look at: 1] "sprite sheet" example in animation section. Here is example how to load spritesheet if all the sprites are the same width and height (which is your case looking on the linked image),2] check also "atlas" example in bitmap section - there is example of loading sprite atlas with variable sprite dimensions. This kind of atlas needs metadata that describes where is sprite and how big it is. Link to comment Share on other sites More sharing options...
Recommended Posts