Jump to content

Help with Sprite Sheets


mgkrp
 Share

Recommended Posts

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.png


Can anyone please give me a pointer?


Link to comment
Share on other sites

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...