Attempt to call function 'play' in base 'null instance' on a null instance. (Solved)

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

My script worked fine before, but suddenly it crashes as soon my Kinematicbody2d hits the floor and it wants to play a sprite.

It’s a script error, but i have no idea what to do about it.

Whenever it runs $Sprite.flip_h or $ it crashes.

can you elaborate a little bit more?

rustyStriker | 2018-03-05 07:53

:bust_in_silhouette: Reply From: eons

It means the node called Sprite does not exists as a child of the node with the script, check your tree (or the remote running one).

Got it figured out, thanx for pointing me in the right direction.

I renamed my Sprite node, changed it back to Sprite. Problem solved. XD

KND2501 | 2018-03-05 20:35