You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

46 lines
1.6 KiB

[gd_scene load_steps=8 format=2]
[ext_resource path="res://assets/sound/Gulls/Seagulls_04_mono.ogg" type="AudioStream" id=1]
[ext_resource path="res://assets/sound/Gulls/Seagulls_01_mono.ogg" type="AudioStream" id=2]
[ext_resource path="res://assets/sound/Gulls/Seagulls_02_mono.ogg" type="AudioStream" id=3]
[ext_resource path="res://assets/sound/Gulls/Seagulls_03_mono.ogg" type="AudioStream" id=4]
[ext_resource path="res://addons/randomAudioStreamPlayer/random_audio_stream_player_3D.gd" type="Script" id=5]
[ext_resource path="res://scenes/sub_scenes/seagull_inherit.tscn" type="PackedScene" id=6]
[sub_resource type="GDScript" id=1]
script/source = "extends Timer
onready var audio = get_node(\"../RandomAudioStreamPlayer3D\")
func _ready():
assert(audio != null)
func _on_timeout():
audio.play()
start(State.rng.randf_range(3.0, 6.0))
"
[node name="Gull Dummy" type="Spatial"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.7, 15, 0, 0 )
[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
autostart = true
script = SubResource( 1 )
[node name="RandomAudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
bus = "Seagull"
script = ExtResource( 5 )
streams = [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 1 ) ]
random_strategy = 0
randomize_volume = false
volume_min = 10.0
volume_max = 10.0
randomize_pitch = false
pitch_min = 1.0
pitch_max = 1.0
[node name="seagull" parent="." instance=ExtResource( 6 )]
transform = Transform( 1.7534, -0.962069, 0, 0.962069, 1.7534, 0, 0, 0, 2, 0, 0, 0 )
[connection signal="timeout" from="Timer" to="Timer" method="_on_timeout"]