diff options
Diffstat (limited to 'Mob.tscn')
-rw-r--r-- | Mob.tscn | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1,17 +1,18 @@ -[gd_scene load_steps=5 format=3 uid="uid://cslaufgh6ber3"] +[gd_scene load_steps=6 format=3 uid="uid://cslaufgh6ber3"] [ext_resource type="Script" path="res://Mob.gd" id="1_bbcew"] [ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="2_xcu8u"] +[ext_resource type="PackedScene" uid="uid://bjcrf4o4a80iv" path="res://HPBar.tscn" id="3_e777u"] [sub_resource type="CircleShape2D" id="CircleShape2D_rsrm7"] -radius = 7.0 +radius = 3.0 [sub_resource type="RectangleShape2D" id="RectangleShape2D_iaxxs"] size = Vector2(8, 8) [node name="Mob" type="CharacterBody2D"] y_sort_enabled = true -collision_mask = 0 +collision_mask = 4 input_pickable = true script = ExtResource("1_bbcew") @@ -31,14 +32,12 @@ collision_mask = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="NavigationBase"] shape = SubResource("RectangleShape2D_iaxxs") -[node name="HP" type="ProgressBar" parent="."] +[node name="HPBar" parent="." instance=ExtResource("3_e777u")] unique_name_in_owner = true offset_left = -10.0 -offset_top = -12.0 +offset_top = -11.0 offset_right = 10.0 -offset_bottom = -8.0 -theme_override_font_sizes/font_size = 8 -show_percentage = false +offset_bottom = -9.0 [node name="Label" type="Label" parent="."] offset_left = -3.0 |