move_and_slide_with_snap() the player doesn't jump. When using
is_on_floor() doesn't make it jump, I checked if it wasn't detecting floor but it does, shows
true when is on floor.
This is how the code looks
var snap = Vector2.DOWN * 16
motion.y = -jumpforce
motion = move_and_slide_with_snap(motion, snap, Vector2.UP)