1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Felipe M e1dac6f649
Fix: GameOver not working after loading game 2021-05-23 15:59:26 +02:00
Felipe M c4bdfcba8d
Fix player hitbox after invincibility 2021-05-23 15:53:29 +02:00
3 changed files with 14 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",

View File

@ -14,6 +14,7 @@ func _ready():
SaverLoader.is_loading = false
MainInstances.Player.connect("hit_door", self, "_on_Player_hit_door")
MainInstances.Player.connect("died", self, "_on_Player_died")
func _on_Player_hit_door(door):
# Executes the function after the current tick of the game is done, to make