Преглед изворни кода

Mark input as handled when a player is created

DricomDragon пре 5 година
родитељ
комит
3b89d4c854
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Hub.gd

+ 2 - 0
Hub.gd

@@ -44,3 +44,5 @@ func _unhandled_input(event):
 					player.position = Vector2(id * 100.0, 0.0)
 					player.modulate = playerColors[id]
 					add_child(player)
+
+					get_tree().set_input_as_handled()