I can't get one of my Node, all the other works

dsfdsf

Hey!

i’ve just started learning Godot and programing in general and i cant figure out why i cant get the Hitmarker2 sprite2D node with this method:

func _ready():
var hMarker = get_parent().get_node(“Hitmarker2”)
print(hMarker)

I can acces all the other nodes and their child nodes individualy, except the Hitmarker which always comes with objectNull error.

i’m triying to acces it from the target node but i tried to get it from other nodes too, same.

I also made some new nodes as a test and i cant acces those too, i can only acces to what i already had before i tried to do this method, it drives me crazy.

i feel like im missing someting fundamental knowledge, i tried adding even more random new nodes to the tree to test and none of them works, all comes with objectNull. But all the others which i already had before on this tree works like a charm except Hitmarker.

Make sure you are getting the parent you think you are:

func _ready(): 
    print(get_parent())

Wrap your code in the code tags (</> on the toolbar) when you post here so that your code maintains its tabs and is actually readable.