Closed Xinoi closed 2 years ago
it kinda disturbs the flow to have 2 different songs
That is a good pint but the music is insane we have to use the music in a other part of the game
Good point. I might implement some kind of audio player later so the song doesn't restart every time you switch screens.
i think that shuld fix it
its probably possible without some extra player. I had an issue that the music kept playing even though i changed screen. I fixed it by stopping it in the hide() method. If we dont do that we simply have to stat the music in the main menu Screen and dont even have to create new Music objects and playing them in other screens
but i guess an audio manager is the more sublime solution. Probably better for later if we have to play music and sounds more frequently
its probably possible without some extra player. I had an issue that the music kept playing even though i changed screen. I fixed it by stopping it in the hide() method. If we dont do that we simply have to stat the music in the main menu Screen and dont even have to create new Music objects and playing them in other screens
The problem with this is that we will not be able to stop the music later since the object we would need to use would be on another screen...
Just tried implementig it on a new branch but couldn't get it to work. If anybody has a good idea how to get it to work you could just try :-)
what did you try ?
I tried creating a MusicPlayer class and creating an instance of it in the Game class and calling the methods from the screens, but the music didn't play.
K im gonna try creating a music player some time
i think it is a good idea to use the main menu music (Rebel?) in all Menu Screens(level, settings) cause it sounds hella fire and it is smoother. Other games usually have only one menu music too