|
@@ -504,7 +504,7 @@ instance.
|
|
randomize()
|
|
randomize()
|
|
|
|
|
|
Drag ``Mob.tscn`` from the "FileSystem" panel and drop it in the
|
|
Drag ``Mob.tscn`` from the "FileSystem" panel and drop it in the
|
|
-``Mob`` property under the Script Variables of the ``Main```node.
|
|
|
|
|
|
+``Mob`` property under the Script Variables of the ``Main`` node.
|
|
|
|
|
|
Next, click on the Player and connect the ``hit`` signal. We want to make a
|
|
Next, click on the Player and connect the ``hit`` signal. We want to make a
|
|
new function named ``game_over``, which will handle what needs to happen when a
|
|
new function named ``game_over``, which will handle what needs to happen when a
|