Invalid access error

Godot Version

4.3

Question

I’ve been trying to follow this tutorial but for some reason when I tried my game at the point of making the camera rotate I got these errors:
“Invalid access to property or key ‘relative’ on a base object of type 'InputEventMouseButton”
"get_system_ca_certificates: Failed to read the root certificate store.
Help?

Hi,
these are two separate errors.

“Invalid access to the property or key ‘relative’ on a base object of type ‘InputEventMouseButton’”
Look in the Docs, there is no such property in the type.
But, a similar question has already been answered, see here:

If that doesn’t help you, maybe you can insert the time the tutorial displays the code. I can’t imagine anyone wanting to watch a 48 minute video to find the missing part.

About the other bug, what are you trying to do here?

1 Like

It seems you accidentally used the wrong event. The property relative belongs to InputEventMouseMotion, not InputEventMouseButton.