diff --git a/Audio/youspinmeround.wav b/Audio/youspinmeround.wav new file mode 100755 index 0000000..9a9c321 Binary files /dev/null and b/Audio/youspinmeround.wav differ diff --git a/Audio/youspinmeround.wav.import b/Audio/youspinmeround.wav.import new file mode 100644 index 0000000..8fe7353 --- /dev/null +++ b/Audio/youspinmeround.wav.import @@ -0,0 +1,23 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/youspinmeround.wav-47f12562f8fd57a7d9a71fe0c8b5723f.sample" + +[deps] + +source_file="res://Audio/youspinmeround.wav" +dest_files=[ "res://.import/youspinmeround.wav-47f12562f8fd57a7d9a71fe0c8b5723f.sample" ] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/Player.gd b/Player.gd index c1b7652..f8f8843 100644 --- a/Player.gd +++ b/Player.gd @@ -88,8 +88,10 @@ func _physics_process(delta): if isSlap: if slap >= slapkill: + AudioMegaSlap.translate(global_transform.origin) AudioMegaSlap.play() else: + AudioSlap.translate(global_transform.origin) AudioSlap.play() if (chargeSlap): diff --git a/Player.tscn b/Player.tscn index 382f16c..941ddda 100644 --- a/Player.tscn +++ b/Player.tscn @@ -49,6 +49,10 @@ cast_to = Vector3( 0, -1.5, 0 ) [node name="AudioSlap" type="AudioStreamPlayer3D" parent="."] stream = ExtResource( 5 ) +bus = "SFX" [node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="."] stream = ExtResource( 6 ) +bus = "SFX" +emission_angle_enabled = true +doppler_tracking = 2 diff --git a/default_bus_layout.tres b/default_bus_layout.tres new file mode 100644 index 0000000..a915b94 --- /dev/null +++ b/default_bus_layout.tres @@ -0,0 +1,15 @@ +[gd_resource type="AudioBusLayout" format=2] + +[resource] +bus/1/name = "SFX" +bus/1/solo = false +bus/1/mute = false +bus/1/bypass_fx = false +bus/1/volume_db = 0.0 +bus/1/send = "Master" +bus/2/name = "Music" +bus/2/solo = false +bus/2/mute = false +bus/2/bypass_fx = false +bus/2/volume_db = 0.0 +bus/2/send = "Master"