Code not sensing node

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

So I try to run my game and it takes me to my player script saying at the bottom “Attempt to call function ‘play’ in base ‘null instance’ on a null instance.” in the Errors tab it says “get_node: Node not found: Body/Body.” The Body/body is a animated sprite in a node 2D.
This was working and when I was trying to test something else this happened. I tried removing that one thing but it happens for all my calls involving animated sprite. The code that’s not working is:”$BODY/Body.play(“ ”). My version of Godot is 3.2

:bust_in_silhouette: Reply From: kidscancode

This error always means that you have an incorrect node path. I suspect it may be a spelling error, since you’ve spelled the path 3 different ways in your post: “Body/Body”, “Body/body”, and “BODY/Body”. Are you certain you’ve spelled the node names correctly in your code?

You can also post a picture of your scene setup so we can see what you’re actually working with.

————————————

SkyRodent | 2020-07-23 19:02