Hello, quick question Defolders, can you access dt from within modules? Every time I try to run this code in another script, I get nil. I can manage to run M.hello.
local M = {}
local message = "Hello world!"
function M.hello()
print(message)
end
function M.scroll()
local position = go.get_position()
position.x = position.x - game_speed * dt
go.set_position(position)
end
return M