Cannot add function

Godot Version

Godot 4.3

Question

Can someone help me?

When asking a question, please always explain what it is you’re trying to do. It’s very difficult to guess your intention from a screenshot.

I can see that you have a game_manager script and a scene-unique node named GameManager. If you’re trying to call a method in the scene-unique node, you need to use this format:

%GameManager.call_some_method(with_this_argument) # Yes, the capitalization matters.

If you’re trying to access some method from script game_manager, then you’re going about it the wrong way. game_manager is a variable, and you need to set it before you can use it.

Please note that guessing is all we can do here.

1 Like