Need help with global Music

Godot Version

godot 4.3

Question

Hello guys, i am making a game and I have a global music
Playing. I Made a .tscn Scene holding the audio, and I scripted it, Saved it
, and then I went to project->Globals and saved the scene as autoload? under the globals tab.Then in my main menu script, i called it with.“playmusic()”
It worked flawlessly…But the problem is…I don’t know how to stop it.
And I’m trying to control the Volume with the animation player so It can fade once you press play. But since It’s in a different scene I dont know how to Tell it to stop And I cant animate the Volume aka Db. I cant remember everything I scripted… because i deleted the scene and undid everything I done. But I did follow this tutorial: https://youtu.be/K_lAB8zqkvQ

You can add a AnimationPlayer to the global scene too, animate it there, and play the animation through a function defined on the global, just like you did with playmusic().

ok thanks! :sweat_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.