Slap Gauge

This commit is contained in:
MarcEricMartel
2022-10-11 12:48:08 -04:00
parent 2c41cf90fc
commit 4d11fe8fc7
5 changed files with 170 additions and 1 deletions

14
SlapGauge.gd Normal file
View File

@@ -0,0 +1,14 @@
extends ColorRect
var Mat;
var fill = 0.0;
var kill = 0.66;
# Called when the node enters the scene tree for the first time.
func _ready():
pass
func _process(delta):
material.set_shader_param("fill",clamp(fill, 0.0, 1.0))
material.set_shader_param("kill",clamp(kill, 0.0, 1.0))