Hey uoppou,
You probably want to check if $camera3d is in your SceneTree. It might be spelled differently or using the wrong node path.
Lmk what you find.
it worked i guess there was a typo in my stuff but it worked when i re named it. thank you. could you help me with another thing, the mouse still drags out of the screen i was hoping you had a way to kinda capture the mouse in the game so the look feature actually works?
You will want to place this line of code in the ready() or init() of one of your top-level Nodes. I generally, put it with my player script.
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
See Input — Godot Engine (stable) documentation in English for more information on how capturing the mouse works.
Also, KidsCanCode wrote an article about it for Godot 3 that mostly still applies to Godot 4.
https://kidscancode.org/godot_recipes/3.x/input/mouse_capture/index.html
yeah this works. thank you
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.