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 .
XxHAMADEHxX
Prole
Posts: 19 Joined: Sun Mar 13, 2016 3:23 am
Post
by XxHAMADEHxX » Mon Apr 18, 2016 12:28 am
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
s-ol
Party member
Posts: 1077 Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:
Post
by s-ol » Mon Apr 18, 2016 12:51 am
Well, as the error message very clearly states your image is in an unsupported format. Convert it or use another one.
Users browsing this forum: Ahrefs [Bot] , Google [Bot] and 3 guests