#Want these songs in a random order and then play them in that order

6 messages · Page 1 of 1 (latest)

vernal kestrel
#

Write your songs into an array and then shuffle it

#

Okay so those are AudioStream Players you have for each song, I see

#

`var song_array : Array[AudioStreamPlayer]

func _ready():
song_array.append(Song1)
song_array.append(Song2)
song_array.append(Song3)
randomize()
song_array.shuffle()
# play song_array[0], then [1], then [2]`

To figure out when they are finished playing you can use their signals to call the next

#

https://www.youtube.com/watch?v=h3_1dfPHXDg This migth be helpful to understand it 🙂

In today’s video we’re going to continue our series on Godot Fundamentals. We’ll cover adding Audio to our Game to improve the overall feel. We’ll look at The Audio Bus Layout, Adding Audio via Audio Stream Players, and controlling our custom Bus volumes from our UI.

🌐 Check out the blog post for this video:
https://gamedevartisan.com/tutorial...

▶ Play video
meager folio
#

can you join the help desk

#

@vernal kestrel