Yagp's Gif Player for HaxeFlixel.
You can install it through Haxelib
haxelib install flxgif
Or through Git
, if you want the latest updates
haxelib git flxgif https://github.com/MAJigsaw77/flxgif.git
import flxgif.FlxGifSprite;
var gif:FlxGifSprite = new FlxGifSprite(0, 0);
gif.loadGif('assets/file.gif');
gif.screenCenter();
gif.antialiasing = true;
add(gif);
Tip
Don't use gif
files that are really big or that have alot of frames, Yagp
will not work so well and will cause lag.
flxgif is made available under the MIT License. Check LICENSE for more information.