Hi all,
I can’t seem to figure out how to get my main menu music to play after the main game is launched. In other words, the game fires up to the main menu, music plays fine(hooked to EventBeginPlay), you hit the play button, play for a bit, die, and the main menu map is reloaded. However, the music no longer plays on the main menu screen. It will only play the very first time. I suspect because it’s on the event begin play node, and will only fire the once, but if thats the case, why do all the rest of the widget work fine(buttons, images, etc.).
I’ve tried hooking the music to Event LevelReset, but that wouldn’t play the sound file at all.
Any suggestions?
Thanks!
How are you reloading the level? The “Open Level” node?
Hi, thanks for the reply, yeah, I’m using the open level node from my main menu widget BP
Hey, thanks for this!
It’s skipping out now, very strange… It will play about fifty percent of the time when it loads. Randomly, sometimes it plays, sometimes it doesn’t. Trying to see if there is a pattern to it, but doesn’t seem to be :-/
I’m thinking I must have something conflicting with it somewhere, just can’t imagine where.
Would you mind uploading a picture of your main menu widget BP? Also what other events do you have in your main menu level BP?
I also have a pause menu, that you can quit from and it will reload the main menu level. Sometimes the music will play in the main menu, and when I start the game from there, the in game music doesn’t play. All the other sound fx work in game, even the triggered events, just no music. The strange thing is, it’s random, sometimes the music will play in both, sometimes only one or the other.
Thanks so much for helping me with this!
P.S.
I am VERY new to unreal… LOL
Okay I don’t if this might be the issue,When you pause your game and you open your pause menu I assume your game pause’s? And does your game pause on death when you are loaded into the main menu again?if this is the case you need to unpause your game when the main menu is loaded
Let me know if your game does pause on death and on the in game pause and I will show you how to fix it,If not let me know and I will setup a project and test
Oh man, brilliant!!
That’s it! I took the pause off my character death and now the music plays when the main menu loads
Of course, now I can walk around dead for a few seconds after I die LOL
That’s awesome, this was making me nuts haha
So, if I pause the game, and then quit to main menu, how would I go about fixing the music?
Haha glad I could help,You can use the ’ Set game paused’ node anywhere in your main menu level BP ‘event begin play’ and it should unpause the game.Just leave it unticked ofcourse.This way you can still use your pause on death function
Awesome! Thank you SO much for taking the time, really appreciate it.