Add the HitEffect
This commit is contained in:
parent
937578ef33
commit
dff15fe25e
|
@ -1,5 +1,9 @@
|
||||||
[gd_scene format=2]
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://AI/HurtBox.gd" type="Script" id=1]
|
||||||
|
|
||||||
[node name="HurtBox" type="Area2D"]
|
[node name="HurtBox" type="Area2D"]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
[connection signal="area_entered" from="." to="." method="_on_HurtBox_area_entered"]
|
||||||
|
|
|
@ -18,6 +18,7 @@ offset = Vector2( -8, -8 )
|
||||||
[node name="HurtBox" parent="." instance=ExtResource( 3 )]
|
[node name="HurtBox" parent="." instance=ExtResource( 3 )]
|
||||||
collision_layer = 8
|
collision_layer = 8
|
||||||
collision_mask = 2147483648
|
collision_mask = 2147483648
|
||||||
|
hit_effect = false
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="HurtBox" index="0"]
|
[node name="CollisionShape2D" parent="HurtBox" index="0"]
|
||||||
position = Vector2( 8, 8 )
|
position = Vector2( 8, 8 )
|
||||||
|
|
Loading…
Reference in New Issue