Can I use a GIF as an animation in a game?

I don’t need help with this now, but I would like to know if this is possible. When the player is walking, (yes there is an idle that is just an image) I want it to play a gif of walking, because the person who made it for me used pixilart.com, which has a GIF animation system,

If you have an <img> tag, you can just set the path to a GIF. This doesn’t work on all browsers, but a lot of them it should (especially now that they’ve been out so long after my reference was posted below).

For reference (this SO post), if you see the text pulsating in the image below then your browser supports animated GIFs:

Didn't load

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.