HUMP timer and bump
Posted: Mon Mar 13, 2017 10:48 am
I want to use the HUMP timer function but when I try to make they delay function a world:update() it says delay is nil. I think this is cause timer doesn't know what world is? Here's the code:
Code: Select all
Timer.during(delay, during, after)
Code: Select all
Timer.during(1, world:update(player, x, y + 1), function ()
Timer.clear()
TimerOn = false
roomName = r.name
room_controller.lastDir = 'up'
return Gamestate.switch(overworld, "maps/".. roomName .. ".lua")
end)
end