Jump to content

Adding spritesheets into atlas


Recommended Posts

Is there any way to use spritesheets from an atlas like normal images? 

Currently I use:

     { frameWidth: 16, frameHeight: 16 }


If I pack all of the spritesheets I use into an atlas, can I use them? Normally when adding an image we can enter both key and frame value (x,y,key,frame) But when making an animation we can enter only key value:

this.anims.create( {
     key: 'coinSpin',
     frames: this.anims.generateFrameNumbers('coin', { start: 0, end: 3, first: 0 }),
     frameRate: 5,


Should I just load every spritesheets as a seperate file or is there any other way?

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