1
Fork 0
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:
Steffo 2023-01-09 02:05:14 +01:00
parent 5373665f85
commit 31f842e280
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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)