small racing game im working on
Diffstat (limited to 'assets/cars/engine.tscn')
| -rw-r--r-- | assets/cars/engine.tscn | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/assets/cars/engine.tscn b/assets/cars/engine.tscn index 598833b..6135ed0 100644 --- a/assets/cars/engine.tscn +++ b/assets/cars/engine.tscn @@ -1,27 +1,12 @@ -[gd_scene load_steps=4 format=3 uid="uid://ceocarryg6o86"] +[gd_scene load_steps=3 format=3 uid="uid://ceocarryg6o86"] [ext_resource type="Script" path="res://assets/cars/engine.gd" id="1_12n5h"] -[sub_resource type="AudioStreamGenerator" id="AudioStreamGenerator_qo6ul"] -mix_rate = 30000.0 -buffer_length = 0.2 - -[sub_resource type="GDScript" id="GDScript_dvwcc"] -resource_name = "engine_inbetween" -script/source = "extends AudioStreamPlayer3D - -@onready var gen: EngineNoise = $generator - -@onready var volume: float: # not decibels - set(v): - volume = v - gen.set_volume(v) -" +[sub_resource type="EngineStream" id="EngineStream_8vj1r"] +mix_rate = 20000.0 +buffer_length = 0.1 [node name="Engine" type="AudioStreamPlayer3D"] -stream = SubResource("AudioStreamGenerator_qo6ul") +stream = SubResource("EngineStream_8vj1r") doppler_tracking = 2 -script = SubResource("GDScript_dvwcc") - -[node name="generator" type="EngineNoise" parent="."] script = ExtResource("1_12n5h") |