diff --git a/scenes/item.gd b/scenes/item.gd index 3a4b8e9..586484d 100644 --- a/scenes/item.gd +++ b/scenes/item.gd @@ -54,7 +54,7 @@ func read_from_file(): position.y = float(attributes["y"]) else: position.y = rand_range(100, 300) - write_to_file() + #write_to_file() func write_to_file(): attributes["x"] = str(position.x) diff --git a/scenes/main.gd b/scenes/main.gd index f18f441..db5ea71 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -44,7 +44,7 @@ func _ready(): # Load first chapter. load_chapter(current_chapter) - input.grab_focus() + file_browser.grab_focus() func _input(event): if event.is_action_pressed("tab"):