Added voice audio

This commit is contained in:
2024-02-16 15:30:29 +01:00
parent 91f5167d6a
commit 89d730f0ae
13 changed files with 86 additions and 49 deletions

View File

@ -1,6 +1,9 @@
extends AreaSkillInstance
@export var voice_audio: AudioStream
func _ready():
animation.play("human/slash", 1.7)
voice.play(voice_audio)
await area_damage(0.5, 0.1, 0.2)
end()

View File

@ -1,24 +1,12 @@
[gd_scene load_steps=5 format=3 uid="uid://bhy50ngwxib3i"]
[gd_scene load_steps=4 format=3 uid="uid://bhy50ngwxib3i"]
[ext_resource type="Script" path="res://skill/slash/slash.gd" id="1_dbiye"]
[ext_resource type="AudioStream" uid="uid://i2yim7wiuukw" path="res://skill/slash/slash_voice.tres" id="2_ldjss"]
[ext_resource type="PackedScene" uid="uid://f1keiecsx5kw" path="res://skill/melee_area.tscn" id="2_q0v6t"]
[ext_resource type="AudioStream" uid="uid://cu5t5y3qadjd7" path="res://assets/audio/voices/swordwoman/swordwoman-special1-tempo-170.wav" id="3_uxa2s"]
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_rkutr"]
random_pitch = 1.05
random_volume_offset_db = 2.0
streams_count = 1
stream_0/stream = ExtResource("3_uxa2s")
stream_0/weight = 1.0
[node name="Slash" type="Node3D"]
script = ExtResource("1_dbiye")
voice_audio = ExtResource("2_ldjss")
[node name="Area" parent="." instance=ExtResource("2_q0v6t")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1.8)
[node name="Voice" type="AudioStreamPlayer3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
stream = SubResource("AudioStreamRandomizer_rkutr")
autoplay = true
bus = &"Voices"

View File

@ -0,0 +1,10 @@
[gd_resource type="AudioStreamRandomizer" load_steps=2 format=3 uid="uid://i2yim7wiuukw"]
[ext_resource type="AudioStream" uid="uid://cu5t5y3qadjd7" path="res://assets/audio/voices/swordwoman/swordwoman-special1-tempo-170.wav" id="1_cowgf"]
[resource]
random_pitch = 1.05
random_volume_offset_db = 1.0
streams_count = 1
stream_0/stream = ExtResource("1_cowgf")
stream_0/weight = 1.0