1
0
Fork 0

Fix player hitbox after invincibility

This commit is contained in:
Felipe M 2021-05-23 15:53:29 +02:00
parent b26c4a4be0
commit c4bdfcba8d
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
2 changed files with 13 additions and 0 deletions

View File

@ -8,4 +8,5 @@ collision_mask = 0
script = ExtResource( 1 )
[node name="Collider" type="CollisionShape2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_Hitbox_area_entered"]

View File

@ -121,6 +121,18 @@ tracks/1/keys = {
"method": "set_invincible"
} ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Hurtbox/Collider:disabled")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.9 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
}
[node name="Player" type="KinematicBody2D" groups=[
"Persists",