I think you should try adding a love.timer.sleep(0.1) in the loop as the loop can run very fast (thanks to modern computers) and freeze the game so it should help i think
zalander wrote: ↑Sat Jun 10, 2023 5:14 pm
I think you should try adding a love.timer.sleep(0.1) in the loop as the loop can run very fast (thanks to modern computers) and freeze the game so it should help i think
while true do
love.timer.sleep(0.1)
-- do stuff
end
It still doesn't work. According to print(self.y, self.collider:collides(floor)) it says that...Oh, wait. The collider's position just doesn't get updated! Now it works. Thanks anyways!