test-client-godot/scenes/GUI/HUD/oubli.gd

9 lines
267 B
GDScript3
Raw Permalink Normal View History

extends HBoxContainer
2018-08-18 08:22:19 +00:00
func _process(delta):
self.get_node( "ProgressBar" ).value = character.oubli
func _on_ProgressBar_value_changed(value):
2018-08-18 08:22:19 +00:00
self.modulate.a = clamp(value/50, 20/255, 1 )
2018-07-27 14:13:54 +00:00
get_node( "../../overlay_oubli" ).modulate.a = self.modulate.a/2