invalid parameter expected userdata(for the nth time)
Posted: Thu Apr 19, 2012 7:51 pm
I know there have been allot of these topics, but each one seems to have different solution and so far none have resolved the titular error. the code is as follows:
The error is at line 13 where the level background placeholder is drawn. Any ideas would be very useful, as this is seriously hindering me making any further progress on this project.
Code: Select all
goingright = true
spawnx = 100
spawny = 400
function love.load()
char = love.graphics.newImage("char.png")
charl = love.graphics.newImage("charl.png")
level = love.graphics.newImage("level.png")
x = 0
y = 0
end
function love.draw()
love.graphics.draw(level, x, y)
if not goingright then
love.graphics.draw(charl, chart.charx, chart.chary)
else
love.graphics.draw(char, chart.charx, chart.chary)
end
end
dofile("char.lua")