input fix

This commit is contained in:
Booklordofthedings 2024-08-20 13:57:52 +02:00
parent 4982fc55bf
commit 05deff5860
2 changed files with 2 additions and 1 deletions

View file

@ -22,4 +22,5 @@ func level_state(value: bool) -> void:
func _on_pressed():
level_selected.emit(level_num)

View file

@ -16,7 +16,7 @@ func connect_level_selected_to_level_box():
func change_to_scene(level_num: int):
var next_level: String = "res://levels/level_" + str(level_num) + ".tscn"
if FileAccess.file_exists(next_level): get_tree().change_scene_to_file(next_level)
get_tree().change_scene_to_file(next_level)
func _on_quit_button_pressed():