From f1b4d6034c937c89b2750bc209684a4e19896177 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 14 Apr 2024 23:00:45 +0700 Subject: Art overhaul --- Levels/IncreaseSize.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Levels/IncreaseSize.gd') diff --git a/Levels/IncreaseSize.gd b/Levels/IncreaseSize.gd index ed761ce..764a114 100644 --- a/Levels/IncreaseSize.gd +++ b/Levels/IncreaseSize.gd @@ -13,4 +13,7 @@ class_name IncreaseSize func _process(_delta): var scale = min_size + ((max_size - min_size) * ((max_value - (max_value - clampf(me.value, 0, max_value))) / max_value)) - me.scale = Vector2(scale, scale) + me.size = scale + + var range = min_range + ((max_range - min_range) * ((max_range - (max_range - clampf(me.value, 0, max_range))) / max_value)) + player.max_distance = range -- cgit v1.2.3