I guess, that you trying to use dt in love.draw(), since i don't see it in your post
(Maybe full source?)
If you doing something like:
Code: Select all
love.draw = function(dt)
foo = foo + bar * dt
end
It will not work, since love.draw don't give dt as argument, it only happens for love.update(dt), so love throws error about non-number value, which in that case == nil
And if i'm right, just do all your update stuff, well, in update function and never in love.draw
If you absolutly need it, you can use love.timer.getDelta() for that (
https://love2d.org/wiki/love.timer.getDelta)