I used RayShape2d and it worked for my original question, but more important than the character being over a tile its that the player always has to be in the nearest free space, being the priorities up and down (depending on the position of the center of the collision shape, it will go to one direction or the other (if in the middle of the tile, then up) ) and left or right if there's no space in the previous directions.