From 5fbe9d90ac8b489d4e22946c7375b369f7423e4f Mon Sep 17 00:00:00 2001 From: tihgs Date: Thu, 19 Jun 2025 16:27:31 +0800 Subject: [PATCH] Added button on the PlayScratt file to play level yeah that part was not in the previous commit lol --- PlayScratt.tscn | 11 +++++++++-- Start.gd | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/PlayScratt.tscn b/PlayScratt.tscn index a601fbf..81ffe81 100644 --- a/PlayScratt.tscn +++ b/PlayScratt.tscn @@ -12,9 +12,16 @@ margin_right = 499.0 margin_bottom = 283.0 rect_scale = Vector2( 2, 2 ) -[node name="Back" type="Button" parent="VBoxContainer"] +[node name="PlayPlay" type="Button" parent="VBoxContainer"] margin_right = 132.0 margin_bottom = 20.0 +text = "Play a game" + +[node name="Back2" type="Button" parent="VBoxContainer"] +margin_top = 24.0 +margin_right = 132.0 +margin_bottom = 44.0 text = "Back" -[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_Back_pressed"] +[connection signal="pressed" from="VBoxContainer/PlayPlay" to="." method="_on_PlayPlay_pressed"] +[connection signal="pressed" from="VBoxContainer/Back2" to="." method="_on_Back_pressed"] diff --git a/Start.gd b/Start.gd index 9ae42a0..a15b594 100644 --- a/Start.gd +++ b/Start.gd @@ -24,3 +24,6 @@ func _on_Estartos_pressed(): func _on_Back_pressed(): get_tree().change_scene("res://main_menu.tscn") + +func _on_PlayPlay_pressed(): + get_tree().change_scene("res://level_juan.tscn")