Change the status meter updater to not do lerping as it makes the output less accurate
This commit is contained in:
@ -47,8 +47,8 @@ func _process(delta):
|
||||
$hud/inventory/wood_label.text = str(inventory.wood)
|
||||
|
||||
#update status HUD
|
||||
$hud/bars/health.value = int(lerp($hud/bars/health.value, float(status.health), 20*delta))
|
||||
$hud/bars/stamina.value = int(lerp($hud/bars/stamina.value, float(status.stamina), 20*delta))
|
||||
$hud/bars/health.value = status.health
|
||||
$hud/bars/stamina.value = status.stamina
|
||||
|
||||
func _input(event):
|
||||
if event is InputEventMouseMotion:
|
||||
|
Reference in New Issue
Block a user