summaryrefslogtreecommitdiff
path: root/scenes/char/weener.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/char/weener.tscn')
-rw-r--r--scenes/char/weener.tscn48
1 files changed, 28 insertions, 20 deletions
diff --git a/scenes/char/weener.tscn b/scenes/char/weener.tscn
index c8164fe..8ed1a80 100644
--- a/scenes/char/weener.tscn
+++ b/scenes/char/weener.tscn
@@ -21,12 +21,6 @@ animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_ka3oh")
-}, {
-"duration": 1.0,
-"texture": ExtResource("1_b3dvs")
-}, {
-"duration": 1.0,
-"texture": ExtResource("1_b3dvs")
}],
"loop": false,
"name": &"grab",
@@ -70,7 +64,11 @@ animations = [{
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rsd08"]
-size = Vector2(44, 109.5)
+size = Vector2(65.5, 150.25)
+
+[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_rsd08"]
+radius = 116.0
+height = 444.0
[node name="Weener" type="CharacterBody2D" unique_id=1834042649]
script = ExtResource("1_5hljh")
@@ -81,21 +79,31 @@ sprite_frames = SubResource("SpriteFrames_ka3oh")
animation = &"stand"
autoplay = "stand"
-[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1548923938]
+[node name="WalkCollision" type="CollisionShape2D" parent="." unique_id=1548923938]
rotation = 1.5707964
shape = SubResource("RectangleShape2D_rsd08")
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=2038637548]
-debug_enabled = true
-[node name="Debug" type="Label" parent="." unique_id=999070759]
-visible = false
-anchors_preset = 5
-anchor_left = 0.5
-anchor_right = 0.5
-offset_left = -20.0
-offset_top = -502.0
-offset_right = 20.0
-offset_bottom = -479.0
-grow_horizontal = 2
-size_flags_vertical = 0
+[node name="InteractDetect" type="Area2D" parent="." unique_id=1466530066]
+collision_mask = 2
+
+[node name="InteractCollision" type="CollisionShape2D" parent="InteractDetect" unique_id=526603123]
+position = Vector2(0, -205)
+shape = SubResource("CapsuleShape2D_rsd08")
+
+[node name="WalkDetect" type="Area2D" parent="." unique_id=1208097571]
+
+[node name="WalkCollision" type="CollisionShape2D" parent="WalkDetect" unique_id=1174332734]
+rotation = 1.5707964
+shape = SubResource("RectangleShape2D_rsd08")
+
+[node name="Inventory" type="Label" parent="." unique_id=1503183978]
+offset_top = -471.0
+offset_right = 40.0
+offset_bottom = -448.0
+
+[connection signal="area_entered" from="InteractDetect" to="." method="_on_area_entered"]
+[connection signal="area_exited" from="InteractDetect" to="." method="_on_area_exited"]
+[connection signal="area_entered" from="WalkDetect" to="." method="_on_walk_detect_area_entered"]
+[connection signal="area_exited" from="WalkDetect" to="." method="_on_walk_detect_area_exited"]