test-client-godot/scenes/GUI/HUD/oubli.gd
2018-08-18 10:22:19 +02:00

9 lines
No EOL
267 B
GDScript

extends HBoxContainer
func _process(delta):
self.get_node( "ProgressBar" ).value = character.oubli
func _on_ProgressBar_value_changed(value):
self.modulate.a = clamp(value/50, 20/255, 1 )
get_node( "../../overlay_oubli" ).modulate.a = self.modulate.a/2