` 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 hdo4ever

Trying to create transition animations on button press using global script (through this tutorial), but this error comes up. I think it has something to do with the node layout in the code but not quite sure what. Any advice would be much appreciated!


Hello,
newb myself in godot, I use animations and modulate for my transitions, but don’t you have to get_node(“transition”) to start it?

Syl | 2018-04-06 02:22

Btw, how do you have that transition node with your animation?

Syl | 2018-04-06 02:32

Do you mean just replacing get_node(“AnimationPlayer”).play(“fade”) with get_node(“transition”).play(“fade”)?

It doesn’t seem to work, perhaps the tutorial is outdated

hdo4ever | 2018-04-06 09:23

Btw, how do you have that transition node with your animation?

I’m not quite sure what you mean by this, do you mean the renamed CanvasLayer or the transition animation in AnimationPlayer?

hdo4ever | 2018-04-06 09:25

:bust_in_silhouette: Reply From: Syl

Sry, my bad, thought it was a node… :s