blob: b94a192773e50b04b9a4f630d1e505890d02e192 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
|