1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-28 18:54:19 +00:00
pineapple-surf/island/Pop.gd

15 lines
212 B
GDScript3
Raw Normal View History

2023-01-08 06:41:28 +00:00
extends AudioStreamPlayer3D
var rng: RandomNumberGenerator
func _ready():
rng = RandomNumberGenerator.new()
rng.randomize()
func play_with_random_pitch():
pitch_scale = rng.randf_range(0.3, 1.0)
2023-01-08 06:56:12 +00:00
play()