Probleme with code from tutorial

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By popon2
:warning: Old Version Published before Godot 3 was released.

Im biginer and i start using godot - I used this tutorial and Im doing the same things (but different names of player or enemy (i checked everythink), but different version of godot…
I m ended in 57:32 - test of restart game (him everything works, me wrote Godot error: “Attempt to call function ‘get_pos’ in base ‘Nil’ on a null instance.”)
Someone have the same probleme, but there is no answer (only from author on his contact)
Can help me someone?
Sorry for my bad english…
video: enter link description here

This error means taht you cast a function “get_pos()” on object that doesn’t exist, the debugger should jump to script editor and bring the line with error in window named “stack frames” you have to check that line for eventual error and if you se nothing just outcoment it with # sign

it will be easier if you paste your code but not here but something like www.pastebin.com

KRL | 2016-03-13 22:30

:bust_in_silhouette: Reply From: puppetmaster-

I also don’t get even the source code to run.

Try the Simple Shooter demo under demos/2d in downloadable examples.
https://downloads.tuxfamily.org/godotengine/2.0.1/Godot_v2.0.1_stable_demos.zip

:bust_in_silhouette: Reply From: KelinciFX

Space Shooter, made with Godot Engine by CalumK. A Project that used by him to teach Godot via Youtube.

This is a modified version of his works that supposed to work with the new Godot 2.0.
http://www49.zippyshare.com/v/iLoVsHob/file.html

:slight_smile: