From 98dcf44062b92bf4f17b5e705257154413159880 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Sun, 24 Sep 2023 20:24:28 -0400 Subject: Add stamina bar --- scenes/main.tscn | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scenes') diff --git a/scenes/main.tscn b/scenes/main.tscn index fba8f18..f7c295f 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -52,8 +52,9 @@ shape = SubResource("BoxShape3D_gtg8d") mesh = SubResource("PlaneMesh_ypd0i") skeleton = NodePath("../..") -[node name="Player" parent="." instance=ExtResource("3_8dect")] +[node name="Player" parent="." node_paths=PackedStringArray("stam_bar") instance=ExtResource("3_8dect")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.7109, 0, 0) +stam_bar = NodePath("../StaminaBar") [node name="StaticBody3D" type="StaticBody3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.7194, 5, -6.35033) @@ -63,3 +64,9 @@ shape = SubResource("BoxShape3D_kjqqf") [node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"] mesh = SubResource("BoxMesh_f2n6h") + +[node name="StaminaBar" type="ProgressBar" parent="."] +offset_left = 32.0 +offset_top = 7.0 +offset_right = 1103.0 +offset_bottom = 34.0 -- cgit