diff options
| author | freddie-a <57713959+freddie-a@users.noreply.github.com> | 2022-10-29 21:59:06 +0100 |
|---|---|---|
| committer | freddie-a <57713959+freddie-a@users.noreply.github.com> | 2022-10-29 21:59:06 +0100 |
| commit | 92758c8c998091b8c2a20e6af5f2f473aa130d7a (patch) | |
| tree | 1a86ffdf0388000b903851fb5230edb8199eff99 /HealthBar.gd | |
| parent | e91f2c9f403522b22b730f777baa354b9a9cfedc (diff) | |
Add health loss
Diffstat (limited to 'HealthBar.gd')
| -rw-r--r-- | HealthBar.gd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/HealthBar.gd b/HealthBar.gd new file mode 100644 index 0000000..ae4ce42 --- /dev/null +++ b/HealthBar.gd @@ -0,0 +1,18 @@ +extends ProgressBar + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass +func _on_player_hit(delta): + value -= delta * 20 |
