Following an old tutorial but I am getting an error about the gifs

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
XxHAMADEHxX
Prole
Posts: 19
Joined: Sun Mar 13, 2016 3:23 am

Following an old tutorial but I am getting an error about the gifs

Post by XxHAMADEHxX »

I was following an old tutorial and I keep getting this error.

main.lua:9: could not decode file 'assets/bullet.gif' to ImageData: unsupported file format


offending code below.

Code: Select all

  --load images(global assets)
  img_fn = {"bullet", "enemy", "player", "title", "background"}
  imgs = {}
  
  for _,v in ipairs(img_fn) do
    imgs[v]=love.graphics.newImage("assets/"..v..".gif")
  end
Thanks friends
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Following an old tutorial but I am getting an error about the gifs

Post by s-ol »

Well, as the error message very clearly states your image is in an unsupported format. Convert it or use another one.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
XxHAMADEHxX
Prole
Posts: 19
Joined: Sun Mar 13, 2016 3:23 am

Re: Following an old tutorial but I am getting an error about the gifs

Post by XxHAMADEHxX »

http://www.nooooooooooooooo.com/

Thank you for the help friend
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests