From 2a5d745c68f11131fb1b27ec42a30ecd6dc5da1d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 25 Dec 2023 20:43:51 +0100 Subject: fix networking --- UI/CharacterSelect.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'UI/CharacterSelect.gd') diff --git a/UI/CharacterSelect.gd b/UI/CharacterSelect.gd index 348ef22..96b228c 100644 --- a/UI/CharacterSelect.gd +++ b/UI/CharacterSelect.gd @@ -49,4 +49,8 @@ func _button_pressed(event, character): func _on_start_button_pressed(): + rpc("_start_game") + + +@rpc("any_peer", "call_local") func _start_game(): get_tree().change_scene_to_file("res://UI/LevelSelect.tscn") -- cgit v1.2.3