浏览代码

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
 -----------