Jump to content

Help with Sprite Sheets


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:


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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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