Attempt to call function 'play' in base 'null instance' on a null instance

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

So the movement mechanics is done but I want to play the animation to it, so I did that, but it has this error whenever I move, its called “Attempt to call function ‘play’ in base ‘null instance’ on a null instance”

:bust_in_silhouette: Reply From: kidscancode

You haven’t really included any information, so it’s hard to tell you exactly what you’ve done wrong. But “null instance” is what get_node() returns when you give it a path that doesn’t exist. So you have a bad node reference that you’re trying to call play() on.