Reinstated plantgrowing animation
This commit is contained in:
@@ -2077,7 +2077,7 @@ _vesnaAnimations = NodePath("CharacterBody2D/visuals")
|
|||||||
_hoe = ExtResource("2_dnm27")
|
_hoe = ExtResource("2_dnm27")
|
||||||
_wateringCan = ExtResource("3_e04c3")
|
_wateringCan = ExtResource("3_e04c3")
|
||||||
|
|
||||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["PlantGrowing"]]
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||||
position = Vector2(0, 374)
|
position = Vector2(0, 374)
|
||||||
collision_layer = 4
|
collision_layer = 4
|
||||||
collision_mask = 3
|
collision_mask = 3
|
||||||
@@ -2091,7 +2091,7 @@ position = Vector2(-24, -13)
|
|||||||
shape = SubResource("CircleShape2D_ssqtd")
|
shape = SubResource("CircleShape2D_ssqtd")
|
||||||
debug_color = Color(0.923708, 0.202722, 0.475262, 0.42)
|
debug_color = Color(0.923708, 0.202722, 0.475262, 0.42)
|
||||||
|
|
||||||
[node name="visuals" type="Node2D" parent="CharacterBody2D" node_paths=PackedStringArray("_sprite", "_wateringParticles")]
|
[node name="visuals" type="Node2D" parent="CharacterBody2D" node_paths=PackedStringArray("_sprite", "_wateringParticles") groups=["PlantGrowing"]]
|
||||||
position = Vector2(0, -374)
|
position = Vector2(0, -374)
|
||||||
script = ExtResource("3_f6xmn")
|
script = ExtResource("3_f6xmn")
|
||||||
_sprite = NodePath("Animated Sprites")
|
_sprite = NodePath("Animated Sprites")
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ public partial class PlantBehaviour2D : Node2D
|
|||||||
|
|
||||||
public override void _Ready()
|
public override void _Ready()
|
||||||
{
|
{
|
||||||
|
GetTree().CallGroup("PlantGrowing", VesnaAnimations.MethodName.PlayFarmingAnimation);
|
||||||
_state = PlantState.Planted;
|
_state = PlantState.Planted;
|
||||||
_currentPlantSprite = GetRandomSprite(_seeds);
|
_currentPlantSprite = GetRandomSprite(_seeds);
|
||||||
_currentPlantSprite.Visible = true;
|
_currentPlantSprite.Visible = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user