setIcon giving an Error
Posted: Fri Sep 02, 2011 2:27 am
I try to add an icon to my test program and I get this error: "main.lua:2:Incorrect parameter type: expected userdata"
now I'm kinda new (ok, really new) to lua, and LOVE, but according to the wiki, I think I wrote this line correctly:
my .love file structure is:
can anyone explain what's wrong?
PS: I know C++, so you don't need to simplify your explanation too much.
now I'm kinda new (ok, really new) to lua, and LOVE, but according to the wiki, I think I wrote this line correctly:
Code: Select all
love.graphics.setIcon("gfx/icon.png")
can anyone explain what's wrong?
PS: I know C++, so you don't need to simplify your explanation too much.