Code Error In the Scripting section!

Godot Version

Version Of Godot: 4.3 (Stable 2024)

Question

I wrote -

func _ready() → void:
Input.set_custom_mouse_cursor(Input.custom_cursor_texture)

→ But their is showing an error - Cannot Find Member “custom_cursor_texture” in base “Input”.
→ I was watching and making as per the tutorial and that code was -

func _ready() → void:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)

→ When I wrote this, it was showing error so I took a help of ChatGPT and serched and I got that code I wrriten above of this code.

Please help me to solve this!

Heres the image of that error -

You need to explain what you want to do with this code, because the code you have and the tutorial code are two complete different things

1 Like

Okay I got it, watch this video that I was watching and writing and understanding it →
Please watch this tutorial so you understand.

Watch this and tell so something will be clarified to you so you can understand what is going.

By the way I am a young beginner level game developer (you can say almost like that), I am 10 years old. :smile: :+1:t2: