Stand in between two tilemap tiles messes with 'is_on_floor'

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AfterCadaver

My Problem

I am working on a platformer game in 3.0. For some reason, when my character ( a KinematicBody2D) stands or walk between two tiles the is_on_floor method bugs out and flickers between true and false constantly as long as I don’t move from position.

What is causing this and how can I fix it?