I have an error Invalid call Nonexistent function 'Instance' in base 'NII'

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

this is an error i found when I was following the “First Game” tutorial in Godot

:bust_in_silhouette: Reply From: jgodfrey

Your code image isn’t showing. You’re probably better off posting the code directly in the forum (formatted via the { } button in the editor toolbar).

Anyway, I assume the error referst to a line similar to this:


… where enemy (above) is a reference to some loaded or preloaded scene. However, in your case, that variable (to the left of the . (enemy here) is null.