Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Playing and switching music in a HUD

OK, I've battered my way through forums trying to figure this one out, but I just can't.

I have a game. It has two effective areas where things happen:

  1. The main map, in this case example_map

  2. The HUD, where most of the game takes place.

Since all controls for the game take place within the HUD, including scoring, changes to static mesh actors, etc. 90% plus of the game is in the HUD...

What I want to do is play a simple sound when the first START button is pressed, which I can do and works fine, but that happens when it loads example_map as part of the level blueprint. However, I'd rather not mix and match.

What I then need is to have a continual music loop playing until an error is made in the game. However, if I use Play Sound 2D then the sound never ever stops, and I cannot call upon any ambient sound actors to activate or deactivate.

If I try to communicate between the level blueprint and the HUD at all I get nothing, no indication that the other exists, either way around. The level blueprint will play and activate whatever I want but is incapable of ever being told that a state exists in the HUD that anything should change. I've spent over a week trying to get boolean calls, and even tried to cheat them with float

Product Version: UE 4.8
more ▼

asked Jul 10 '15 at 02:05 AM in Blueprint Scripting

avatar image

48 11 13 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The answer, in the end, was to remove all ambient sound actors and just play everything individually and stop them individually as you go along.

more ▼

answered Sep 15 '15 at 05:01 PM

avatar image

48 11 13 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question