I’m trying to do something that I thought would be really simple but I just can’t seem to work it out. I’ve created a level that plays an audio file as soon as the level opens. I have a menu button that allows me to return to this level once I have gone to another level or teleported within this same level, effectively restaring the level. This what I’m after however I don’t want the audio to play again, how can I do this? Thanks!
I’m assuming you’re using ‘open level’, which just bins everything and starts again. But… one thing that does remain is the game instance. Just put a bool in the game instance that shows when you have played the music, and check it before you start playing it on begin play in the level.
Avoid the common pitfall of making your own game instance, but then forgetting to configure the project to use it
Thanks, I’ve already got a game instance in the project so I’ve already made this mistake and then found these settings!!
Yes I’m using open Level. I’m a bit of newbie so I’m just trying to understand exactly how to setup your suggestion. It makes sense but I’m not quite sure how to do it. I’m thinking of casting to the game instance on audio finished? Is that what you mean? On the ‘new’ level how do I check the Boolean?
I’m going to give this a go now but looks great, thanks
Exactly the solution I needed and works perfectly, thanks for your help