Code: Select all
objectimage = --the loaded image
table = {object = objectimage}
When I go through the table inside my draw function..
function love.draw()
for i, v in pairs(table) do
love.graphics.draw(v.object,300,300)
end
end
--It doesn't work.
Incorrect Paramater Type: (expected userdata)
So, I'm not sure why this is happening. I'm new to this language. Help appreciated alot!
Also, this is an example. The real code has got alot in it, as I'm making a platformer engine, but this is the issue. The image wont be called upon by the key I use for it, I get that error.