Error with sync_to_physics, what did I wrong?

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

Error: Functions move_and_slide and move_and_collide do not work together with ‘sync to physics’ option. Please read the documentation.

Documentation: Do not use together with move_and_slide or move_and_collide functions.

but I’m using move_and_slide_with_snap?


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);
:bust_in_silhouette: Reply From: Wurzelpilz

Just me being stupid again. I got it wrong. I have to activate sync to physics on my platform not on my player… I guess