diff --git a/getting_started/first_3d_game/07.killing_player.rst b/getting_started/first_3d_game/07.killing_player.rst index 124063c5f..c362db846 100644 --- a/getting_started/first_3d_game/07.killing_player.rst +++ b/getting_started/first_3d_game/07.killing_player.rst @@ -208,7 +208,7 @@ Starting with ``Main.gd``. // Choose a random location on the SpawnPath. // We store the reference to the SpawnLocation node. - var mobSpawnLocation = GetNode("SpawnPath/SpawnLocation"); + var mobSpawnLocation = GetNode("SpawnPath/SpawnLocation"); // And give it a random offset. mobSpawnLocation.ProgressRatio = GD.Randf(); @@ -480,7 +480,7 @@ Finally, the longest script, ``Player.gd``: } // Iterate through all collisions that occurred this frame. - for (int index = 0; index < GetSlideCount(); index++) + for (int index = 0; index < GetSlideCollisionCount(); index++) { // We get one of the collisions with the player. KinematicCollision3D collision = GetSlideCollision(index);