In this tutorial we’re going to add some music to our game, explore the audio bus system in Godot, and create an audio manager script that will allow us to transition and play different music tracks easily on level change.
Topics Covered: music, AudioStreamPlayer, Audio Settings, Audio Bus, Audio Manager, volume_db, Godot 4 Tween, Fade Transition for Music Tracks
New Assets Needed:
- example_music.zip (contains 3 sample audio files)
Asset Download Page: [ Ссылка ]
GitHub Repo: [ Ссылка ]
Discord: [ Ссылка ]
--------------------
Chapters
--------------------
0:00 Intro
0:34 Setup - Grab some Music Files
2:18 Test Music and Explore Audio Bus
9:30 Audio Manager Class Setup
16:37 Level Class Script Update
18:06 Add Music to Levels, Test & Identify Areas to Improve
19:19 Fix Music Restart When the Music played is the same Audio
20:41 Fix Audio Hiccup on Scene Transition
25:26 Transition/Fade Audio Clips
32:50 Test Fade, Try some extra ideas
36:03 Outro
--------------------
Series Playlist: [ Ссылка ]
Ещё видео!