Преглед на файлове

Your first game: enable CollisionShape2D again on player start (#974)

* enable collision 2d again on player start

otherwise there is no collision in a re-play

* remove monitoring line
lislis преди 7 години
родител
ревизия
ce393284c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      learning/step_by_step/your_first_game.rst

+ 1 - 1
learning/step_by_step/your_first_game.rst

@@ -323,7 +323,7 @@ the player when starting a new game.
     func start(pos):
         position = pos
         show()
-        monitoring = true
+        $CollisionShape2D.disabled = false
 
 Enemy Scene
 -----------