Search found 2 matches

by hatingcollege
Fri Mar 19, 2010 1:12 am
Forum: Support and Development
Topic: Loading Images
Replies: 1
Views: 2325

Re: Loading Images

On this line:

Code: Select all

pic1 = love.graphics.newImage(pic1.bmp)
You're forgetting to enclose your strings with quotes. Lua thinks you're trying to access the bmp index of pic1 (as if it were a table).

Fix:

Code: Select all

pic1 = love.graphics.newImage('pic1.bmp')
by hatingcollege
Tue Mar 02, 2010 6:43 am
Forum: General
Topic: LÖVE 0.6.1
Replies: 44
Views: 24295

Re: LÖVE 0.6.1

Disclaimer: I'm a LOVE (and Lua) noob, so.. get your grain of salt ready.. The way I handle this in other game libraries is, as anjo mentioned, create multiple sources from the same file. You can use a basic queue system to ensure the "freshest" (as in "most likely to have finished pl...