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"

How can I play/stop music during the game?

How would i go about playing different songs during game play? currently i have a theme song playing when the game starts, but when the player reaches their wining score i want it to stop playing and play a new song. Currently, i have this action take place on the gamemode blueprint. So i have it to where i notify if the player eached the winning score. Unfortunately, the main sound doesnt stop.

alt text

Product Version: Not Selected
more ▼

asked May 29 '14 at 08:53 PM in Blueprint Scripting

avatar image

41 6 8 11

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

1 answer: sort voted first

The problem here is that you are powering this blueprint logic using the Event Begin Play node. This will only fire one time at the very beginning of the game. Meaning that Winning Score Achieved will never be true, since it isn't true when the game starts, and so the Main Theme will never stop. One way to test this is to have the Branch node be connected to Event Tick instead of Event Being Play. While this is not ideal, since Event Tick fires constantly, it will work. The ideal method is to create some kind of event that is fired when the winning score is achieved, and then use that event to Stop the Main Theme, but the solution I gave above will work until you modify your game logic to use events.

more ▼

answered May 30 '14 at 02:53 AM

avatar image

2.6k 62 27 281

avatar image raparicio Jun 03 '14 at 03:33 PM

Thanks! After your answer i went through and made some logic inside of the game mode. So if anyone is interested, this what i did.

alt text

wacka_music.jpg (79.8 kB)
avatar image Jsosnowski1 Apr 28 '16 at 08:07 PM

How did you get it to call game score? Also how did you set your songs to those variables my wav and cues would not show up.

avatar image MA1 Productions Oct 04 '16 at 03:40 AM

I know an answer but did you figure it out yourself

(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