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/spin", 2.0)
voice.play(voice_audio)
await area_damage(0.5, 0.1, 0.4)
end()

View File

@ -1,27 +1,12 @@
[gd_scene load_steps=6 format=3 uid="uid://bhrlgrleih7d0"]
[gd_scene load_steps=4 format=3 uid="uid://bhrlgrleih7d0"]
[ext_resource type="Script" path="res://skill/spin/spin.gd" id="1_p5jmv"]
[ext_resource type="AudioStream" uid="uid://bwgmlkkxqbxoh" path="res://skill/spin/spin_voice.tres" id="2_bjl2j"]
[ext_resource type="PackedScene" uid="uid://f1keiecsx5kw" path="res://skill/melee_area.tscn" id="2_fjxc1"]
[ext_resource type="AudioStream" uid="uid://t7ewt5tv8opw" path="res://assets/audio/voices/swordwoman/swordwoman-attack1.mp3" id="3_8hb6m"]
[ext_resource type="AudioStream" uid="uid://butmelbywp6iy" path="res://assets/audio/voices/swordwoman/swordwoman-attack2.mp3" id="4_j0bb6"]
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_bedvd"]
random_pitch = 1.05
random_volume_offset_db = 2.0
streams_count = 2
stream_0/stream = ExtResource("3_8hb6m")
stream_0/weight = 1.0
stream_1/stream = ExtResource("4_j0bb6")
stream_1/weight = 1.0
[node name="Spin" type="Node3D"]
script = ExtResource("1_p5jmv")
voice_audio = ExtResource("2_bjl2j")
[node name="Area" parent="." instance=ExtResource("2_fjxc1")]
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_bedvd")
autoplay = true
bus = &"Voices"

View File

@ -0,0 +1,13 @@
[gd_resource type="AudioStreamRandomizer" load_steps=3 format=3 uid="uid://bwgmlkkxqbxoh"]
[ext_resource type="AudioStream" uid="uid://t7ewt5tv8opw" path="res://assets/audio/voices/swordwoman/swordwoman-attack1.mp3" id="1_cjplv"]
[ext_resource type="AudioStream" uid="uid://butmelbywp6iy" path="res://assets/audio/voices/swordwoman/swordwoman-attack2.mp3" id="2_prj6p"]
[resource]
random_pitch = 1.05
random_volume_offset_db = 1.0
streams_count = 2
stream_0/stream = ExtResource("1_cjplv")
stream_0/weight = 1.0
stream_1/stream = ExtResource("2_prj6p")
stream_1/weight = 1.0