Basically, I want to check if none of the game's control keys are held down.
Code: Select all
--slow down if no keys down
anyDown = love.keyboard.isDown( right, left, up, down )
if anyDown == false then
yspeed = 0
end
the game to crash before starting.
My error states that on that line: bad argument #1 to 'isDown' (string expected, got nil)
This all takes place within love.update.
Is there something little I am missing?
Is that function broken/bugged?
Am I being stupid with a much better method in doing this?