diff options
Diffstat (limited to 'src/helpers/size_change.gd')
-rw-r--r-- | src/helpers/size_change.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/size_change.gd b/src/helpers/size_change.gd index b94a192..b86993e 100644 --- a/src/helpers/size_change.gd +++ b/src/helpers/size_change.gd @@ -1,14 +1,15 @@ extends Sprite + export (OpenSimplexNoise) var noise export var speed := 20.0 var pos := 0.0 onready var orig_scale = scale + func _ready(): pos = rand_range(0,1000) - func _process(delta): pos += delta*speed scale = orig_scale * (1 + noise.get_noise_1d(pos)*0.2) |