0 votes

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);
Godot version 3.3.2
in Engine by (139 points)

1 Answer

0 votes

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

by (139 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.