Error: Functions moveandslide and moveandcollide do not work together with 'sync to physics' option. Please read the documentation.
Documentation: Do not use together with moveandslide or moveandcollide functions.
but I'm using moveandslidewithsnap?
extends KinematicBody2D
var velocity = Vector2(0, 0)
func _process(_delta):
velocity.y = 100
var snap = Vector2.DOWN * 32
velocity = move_and_slide_with_snap(velocity, snap, Vector2.UP);