0 votes

Hi,
When I run a scene with a KinematicBody that have an script attached, I get an error that says that a variable that contains a node location (I checked one thousand times that it is correct) is null. The script is in the autoload, but when I remove it from there, the error disappears. Is there a way to see what is interacting with the variable accesing from the autoload?
Thanks in advanced

Godot version 3.2.3
in Engine by (353 points)

1 Answer

0 votes

So where is this code scripted ? In Body or Autoload ? Paste the code with introduction of variable and the one with getting the variable from autoload. Surely You made some mistake resulting in variable being referenced too early or reference gone

by (2,390 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 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 webmaster@godotengine.org with your username.