Hello!

I'm triying to do a simple damage popup in a very basic scene. Everything was working as intended until I wanted to reference the AnimationPlayer node inside a label node that i'm using to show the damage. I want to know why in the console the reference to the object is null if the parent node was instantiated before. Sorry if all of this is too basic, I'm just a beginner...

  • KermexRPG Yeah but your node path assumes it's a child of Pizus' parent. Looking from the perspective of Pizus (where I assume your script is attached), the correct path would be $DamagePopup/PopupAnim

KermexRPG changed the title to Why is this object reference null? .

Your node path $"../DamagePopup/PopupAnim" is likely incorrect.

    xyz I dunno, I can see here the node was correctly added as a child of Pizus...

    • xyz replied to this.

      KermexRPG Yeah but your node path assumes it's a child of Pizus' parent. Looking from the perspective of Pizus (where I assume your script is attached), the correct path would be $DamagePopup/PopupAnim