Unexpected result when using the “clamp” function

The Player offset might be it, the issue is your CharacterBody2D’s position is altered by the scripts but the Player node is it’s parent so any offset will affect the clamp. Try making the CharacterBody2D the root of that scene instead of a Node2D to make placement easier without having to use “editable children” in the main scene.

1 Like