0 votes

This is my Main Menu script

func _ready() -> void:

This Audio is from a Autoload
And when i start the Game i want a different Audio to start (which it does) but the other Audio is still playing, it doesn't stop.

func _start_game() -> void:
    MusicController.play_music1_() <--- stop

i searched on the docs but don't know how to do that, i tried with is_playing() and other but idk.

in Engine by (133 points)

1 Answer

+1 vote

Try MusicController.stop()
or MusicController.stopmusic1()

by (26 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.