Hi everyone. :)
I'm once again asking for some of your wise guidance. I'm following the tutorial, but eh yah, as a newbie I suppose it's easy to make mistakes.
I get this "node not found" error. I've tried to solve it on my own, I did notice a few spelling mistakes I had made and corrected those. But this that it can't find the node, I don't know how to fix that. In the tutorial "Code Your First Complete 2D Game with Godot" I'm at timestamp 40:20.
I have looked over connections, the timer, the scene tree itself to make sure things that are subgroups/children are correct. When I press F6 here I just get a white screen, no mobs moving around.
Here's the error message, and the code.
E 0:00:01.709 getnode: (Node not found: "MobPath/MobSpawnLocation" (relative to "/root/Main").)
<C++ Error> Condition "!node" is true. Returned: nullptr
<C++ Source> scene/main/node.cpp:1325 @ getnode()
Main.gd:10 @ onMobTimer_timeout()
export (PackedScene) var mob_scene
var mob_spawn_location = $MobPath/MobSpawnLocation
mob_spawn_location.unit_offset = randf()
var mob = mob_scene.instance()
mob.position = mob_spawn_location.position
var direction = mob_spawn_location.rotation + PI / 2
direction += rand_range(-PI / 4, PI / 4)
mob.rotation = direction
var velocity = Vector2(rand_range(mob.min_speed, mob.max_speed), 0)
mob.linear_velocity = mob.linear_velocity.rotated(direction)