Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | beliys |
I am just starting to deal with godot and as a training I started making an analogue of a simple retro game. And in the process I ran into probably the most common problem for beginners Invalid get index 'position' (on base: 'null instance')
. Studying similar problems, I understand that most likely I need to use the get_node
function, but I do not quite understand how and where to use it in my particular case.
Link to the repository with the current code - - GitHub - beliys/klad: KLAD is a retro game similar to Rise Out which was created for old Soviet computers KORVET
The problem occurs on the next line - https://github.com/beliys/klad/blob/master/player.gd#L26
Thanks a lot for any help.