Move camera2d in x axis like fnaf with the mouse

Godot Version



Hello group, I am working on a fnaf fan game and I have some problems, since I want the 2d camera to move only in the x axis using the mouse to move it when I go left or right, I have only achieved the movement using controls for platform characters to move it with the keyboard and so on xd thanks

In The input handler check for mouse motion events and us the relative x movement of the mouse to move the camera position.

1 Like