If map(mapX,mapY+1)= nothing
playerY = playerY + 1
doLeftandRight = false
end if
Though, it would be a good idea to stop them moving left or right (doLeftandRight) when falling, since they may end up floating through the walls.
I would go through you code, but my head is a shed with my own! :)
playerY = playerY + 1
doLeftandRight = false
end if
Though, it would be a good idea to stop them moving left or right (doLeftandRight) when falling, since they may end up floating through the walls.
I would go through you code, but my head is a shed with my own! :)