game: improve attack animation
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
[sub_resource type="Curve2D" id="Curve2D_frsqi"]
|
||||
bake_interval = 2.0
|
||||
_data = {
|
||||
"points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 25, 10, 150, 0)
|
||||
"points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 25, 10, 200, 0)
|
||||
}
|
||||
point_count = 2
|
||||
|
||||
@@ -28,7 +28,6 @@ loop = false
|
||||
[node name="Sprite2D" type="Sprite2D" parent="AttackPath/PathFollow2D"]
|
||||
position = Vector2(0.322462, -0.946582)
|
||||
rotation = 0.328329
|
||||
scale = Vector2(1, 1)
|
||||
texture = ExtResource("1_3fwwl")
|
||||
|
||||
[node name="AttackArea" type="Area2D" parent="AttackPath/PathFollow2D/Sprite2D"]
|
||||
@@ -49,7 +48,6 @@ shape = SubResource("CircleShape2D_3fwwl")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="AttackPath/PathFollow2D/Sprite2D/AttackArea" to="." method="_on_attack_area_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
Reference in New Issue
Block a user