This commit is contained in:
MarcEricMartel 2022-10-11 15:14:32 -04:00
parent 16372098e4
commit 2add3e5349
5 changed files with 44 additions and 0 deletions

BIN
Audio/youspinmeround.wav Executable file

Binary file not shown.

View File

@ -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

View File

@ -88,8 +88,10 @@ func _physics_process(delta):
if isSlap: if isSlap:
if slap >= slapkill: if slap >= slapkill:
AudioMegaSlap.translate(global_transform.origin)
AudioMegaSlap.play() AudioMegaSlap.play()
else: else:
AudioSlap.translate(global_transform.origin)
AudioSlap.play() AudioSlap.play()
if (chargeSlap): if (chargeSlap):

View File

@ -49,6 +49,10 @@ cast_to = Vector3( 0, -1.5, 0 )
[node name="AudioSlap" type="AudioStreamPlayer3D" parent="."] [node name="AudioSlap" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 5 ) stream = ExtResource( 5 )
bus = "SFX"
[node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="."] [node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 6 ) stream = ExtResource( 6 )
bus = "SFX"
emission_angle_enabled = true
doppler_tracking = 2

15
default_bus_layout.tres Normal file
View File

@ -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"