We got music working, but are confused about sound effects.
What is the correct method to load sound effects, set their volume, and then play them all in script code?
Let us know, thanks!
We got the sound effect playing now, but it repeats?
How to disable repeat of playing sound effect?
MusicVolume = 1.0
EffectsVolume = 1.0
var music_player = AudioStreamPlayer.new()
music_player.stream = load("res://media/music/TitleBGM.ogg")
var effect_player = AudioStreamPlayer.new()
effect_player.stream = load("res://media/sound/Explosion.ogg")
effect_player.play() # Plays, but how to disable repeat?