#how to load gif files at runtime?

4 messages · Page 1 of 1 (latest)

modern solstice
#

I get a Error 15 when I try to load a gif file:

const image_path = "my_gif.gif"
var image: Image = Image.new()
var err: int = image.load(image_path)
if err != OK:
    print("Failed to load image. err: ", err, " - ", image_path)
willow idol
#

godot doesn't have built-in gif support, your options are:

brave badger
# modern solstice thx

to add to this, there is AnimatedTexture which is probably the closest to a gif, as it is automatically animated.