0 votes

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

in Engine by (19 points)

1 Answer

0 votes

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.

by (21,712 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.