added farming animation mechanic

This commit is contained in:
2025-05-19 23:49:00 +02:00
parent ad070514d7
commit fa7cc66748
4 changed files with 36 additions and 10 deletions
+4 -5
View File
@@ -1581,7 +1581,7 @@ animations = [{
}],
"loop": true,
"name": &"diagonal farming",
"speed": 10.0
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
@@ -3502,7 +3502,7 @@ y_sort_enabled = true
script = ExtResource("1_yl84k")
_farmingControls = NodePath("FarmingControls")
[node name="CharacterBody2D" type="CharacterBody2D" parent="." node_paths=PackedStringArray("_sprite")]
[node name="CharacterBody2D" type="CharacterBody2D" parent="." node_paths=PackedStringArray("_sprite") groups=["PlantGrowing"]]
position = Vector2(0, 374)
collision_layer = 4
collision_mask = 3
@@ -3523,9 +3523,8 @@ position = Vector2(0, -374)
[node name="Animated Sprites" type="AnimatedSprite2D" parent="CharacterBody2D/visuals"]
position = Vector2(0, 450)
sprite_frames = SubResource("SpriteFrames_4yiyq")
animation = &"side pickup"
frame = 6
frame_progress = 0.00476268
animation = &"diagonal farming"
frame_progress = 0.503028
offset = Vector2(0, -450)
[node name="Hoe" type="Sprite2D" parent="CharacterBody2D/visuals"]