Playing GIFs in Phaser 3

Recommended Posts

For anyone interested, i solved this by converting my GIF to a sprite sheet. Keep in mind that if your sprite sheet has only 1 column,  it may become to big of a file (in one of its dimensions) and unable to be loaded by phaser. If this happens, try making a matrix sprite sheet, that is, a sprite sheet with multiple column. Then just create an animation as you would with a simple character model (as in the 'making your first game' tutorial provided for phaser 3 getting started guide).

Share this post

Link to post
Share on other sites

I have investigated converting gifs to spritesheets at runtime and it seems every solution that I've come across involves using imagemagic. If you're not getting the gif from an external source then you should use a spritesheet.

Share this post

Link to post
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.