the only node that is offset is the player that I placed by hand in a specific position of the tilemap in the main tree. but in running time his position is = (0,0)
Is that the way to create the character on the map?
debugging i can observe that with few movements the character reaches the x or y position limit,
is it something to do with the size difference between the character (48x48) and the tilemap textures (16x16) ?
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.
It depends on where your script is. Since you were placing the Node2D but the script is a child of Node2D the CharacterBody2D (scripted) will think it’s at 0,0
Generally good to have your root node hold the most important script in a scene, “other node” will become the most used out of those initial options.