ft: player attacking logic
This commit is contained in:
@@ -45,9 +45,8 @@ animations = [{
|
||||
"speed": 1.0
|
||||
}]
|
||||
|
||||
[node name="NucleotidePrey" instance=ExtResource("1_qvulj")]
|
||||
[node name="NucleotidePrey" groups=["prey"] instance=ExtResource("1_qvulj")]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
motion_mode = 1
|
||||
script = ExtResource("2_0227s")
|
||||
maxHealth = 20
|
||||
@@ -57,9 +56,3 @@ scale = Vector2(0.1, 0.1)
|
||||
sprite_frames = SubResource("SpriteFrames_66x8p")
|
||||
animation = &"Dying"
|
||||
frame_progress = 0.60472965
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Area2D" index="0"]
|
||||
position = Vector2(7.215866, -0.5034294)
|
||||
polygon = PackedVector2Array(-8.831272, -2.3390446, -5.7760534, -2.3993049, -4.0230684, 0.41277456, -5.8890305, 2.9948444, -8.862037, 2.9326901, -10.268076, 0.28495264)
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|
||||
|
||||
Reference in New Issue
Block a user