Boss hit animation

This commit is contained in:
2023-09-08 01:34:37 -07:00
parent 5362240120
commit 929629a826
10 changed files with 169 additions and 31 deletions

View File

@@ -2,9 +2,13 @@ using Godot;
public partial class GodCircuit : Node3D
{
[Export]
private AnimationPlayer _animationPlayer;
private void OnHit(Node3D node)
{
GD.Print("Hit");
_animationPlayer.Play("OnHit");
var hpComponent = GetNode<HealthPoints>("HP Component");
hpComponent.TakeDamage(800000);
hpComponent.UpdateHealthbar();