Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+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 (8 points)

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".


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 (8 points)