Godot Version
` 4.1.2
Question
In my game, Its a fnaf fangame in which, I tried making that the players view moves along with the mouse.
this the code I used.
func _input(event):
if event is InputEventMouseMotion:
position.x += event.relative.x
The biggest problem I have encountered is that theres a major offset with the location.
it was able to go reach -700 at the x value when scrolling to the left while only able to reaching 453 when going to the right.
another problem is also position.x += event.relative.x. Where if I remove the “+” causes t he camera to jitter and also go to either -1 or 1 at the x value