When I start my game, the camera, which is controlled by the mouse, will not move unless I hold one of the mouse buttons down, and stops moving the camera when I release it. I want the game to start with the mouse freely moving the camera and for it to stay that way but I cannot figure out what is causing this. I tried project settings for the input but that did not help.
(post deleted by author)
you should capture the mouse for that i think
go to project settings → Input → uncheck “Use mouse for touch“
I did both of these and when I start the game, it works as intended, but as soon as I click in the game, the camera them stops moving unless I hold any of the mouse buttons down and I just cannot figure out why it does this.
This is the main part of the code I use to show the cursor when the game starts, but despite messing around with the Set Input Mode UI Only and Set Input Mode Game Only nodes, it doesn’t seem to make a difference in the game. There are also other menus that are apart of my Main Menu level as sub-UI’s too, if that helps.
And to specify what I’m looking to do: I want to be able to move the camera with the mouse while still having the mouse on screen, while still being able to click objects within the game without changing that behavior. Is that even possible?
im not sure. i would assume you can still get those events. but it would have to be something a bit manual iirc. i don’t know the exact answer to that, i’m sorry. but i heard that question before in the forums. have you tried searching?