This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
–1 vote

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

I was trying to run the shop scene but this error auhh.
can't fix it

solution plz TwT

This is the problem code

Godot version v3.4.4.stable
in Engine by (37 points)

A screenshot of the node you're calling in the scene tree would help also. This error means that it can't find the node('Panel' +str(item+1) its null and you are trying to call get node('Button') on a null instance.

I took the source code from this youtube playlist

1 Answer

0 votes

The error is caused because the node('Panel' +str(item+1)) doesn't exist. and you are trying to call a method on it.

by (1,055 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.