Jump to content

Playing GIFs in Phaser 3


NUGA
 Share

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

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

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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