Fixed Signals, effects, and collisions.
This commit is contained in:
@@ -99,18 +99,15 @@ func attack_aninimation_finished():
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
func _on_Hurtbox_invincibility_started():
|
||||
blinkAnimationPlayer.play("Start")
|
||||
|
||||
func _on_Hurtbox_area_entered(_area):
|
||||
func _on_Hurtbox_invincibility_ended():
|
||||
blinkAnimationPlayer.play("Stop")
|
||||
|
||||
func _on_hurtbox_area_entered(area: Area2D) -> void:
|
||||
stats.health -= 1
|
||||
hurtBox.start_invincibility(0.6)
|
||||
hurtBox.create_hit_effect()
|
||||
var playerHurtSounds = PlayerHurtSound.instantiate()
|
||||
get_tree().current_scene.add_child(playerHurtSounds)
|
||||
|
||||
|
||||
func _on_Hurtbox_invincibility_started():
|
||||
blinkAnimationPlayer.play("Start")
|
||||
|
||||
|
||||
func _on_Hurtbox_invincibility_ended():
|
||||
blinkAnimationPlayer.play("Stop")
|
||||
|
||||
Reference in New Issue
Block a user