Problem with a method.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nick888

I want to use the method get_global_mouse_pos() but i have this error message:

Method get_global_mouse_pos() is not declared in the current class.
How i can declared a method in a current class?

Thank you.

:bust_in_silhouette: Reply From: volzhs

you are using 2.x or 1.x method.
it is get_global_mouse_position() with godot 3.x
you can easily find with Search Help in editor.

Thank you very much!

Nick888 | 2019-04-30 07:43

Just wondering, what was the solution because I am unable to find one and it keeps on repeating that it isn’t declared. how should I declare it?

dang_ | 2020-10-20 09:48

Ok, I got the correct answer here:
Reddit - Dive into anything

ezequielleonzybert | 2020-10-22 02:46