diff options
author | altaf-creator <dev@altafcreator.com> | 2024-04-14 23:00:45 +0700 |
---|---|---|
committer | altaf-creator <dev@altafcreator.com> | 2024-04-14 23:00:45 +0700 |
commit | f1b4d6034c937c89b2750bc209684a4e19896177 (patch) | |
tree | f91731656ff901e458ab504b8e8e33fb06e67c0b /Levels/IncreaseSize.gd | |
parent | 21d3893b6b1c1ffb2d9611bce67568e713161b3d (diff) |
Art overhaul
Diffstat (limited to 'Levels/IncreaseSize.gd')
-rw-r--r-- | Levels/IncreaseSize.gd | 5 |
1 files changed, 4 insertions, 1 deletions
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 |