mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-21 15:34:17 +00:00
Add a small constant to the scale factor
This commit is contained in:
parent
5373665f85
commit
31f842e280
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ func complete():
|
|||
func _process(_delta):
|
||||
var scale_factor = 0
|
||||
if not growth_timer.is_stopped():
|
||||
scale_factor = 1 - (growth_timer.time_left / growth_timer.wait_time)
|
||||
scale_factor = 0.10 + 0.90 * (1 - growth_timer.time_left / growth_timer.wait_time)
|
||||
sprout_mesh.scale = Vector3(scale_factor, scale_factor, scale_factor)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue