Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

Hi guys, does anyone know how to stop the music in the menu and when they hit the play button , the music change to the play music in the game ??

asked in CSC305 Fall 2019 by (1 point)
+5

When you ask a question on a Q&A site, always make sure to give your question a good name (just like you should make sure to always give your variables and methods good names!). In this case, your question title should include something about "starting/stopping music".

+3

Got it. Thank you.

1 Answer

+3 votes

I saw something related to this by importing media from the javafx package. I think you could use this: https://stackoverflow.com/questions/29499261/how-to-pause-resume-a-song-in-javafx.
It gives an example of starting and stopping the sounds.

answered by (1 point)
...