x

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"

Play sound when paused, stop sound when unpaused.

I am trying to play a sound when paused - which i have achieved by ticking the ui sound in the sound class. However after i unpause the game the sound continues, i need it to stop. so when menu widget is active it starts an when widget is removed it stops etc. Cheers! :)

Product Version: UE 4.9
Tags:
more ▼

asked Nov 09 '15 at 05:18 PM in Blueprint Scripting

avatar image

Pantlessnoodle
21 15 16 20

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Can you tel me how did you remove your widget? If you use a button click event, that maybe a good place to include the code to stop the music.

more ▼

answered Nov 10 '15 at 09:35 AM

avatar image

CKong
874 27 18 48

avatar image Pantlessnoodle Nov 10 '15 at 06:07 PM

i have a continue button that un pauses the game, its done with blue prints :)

avatar image Pantlessnoodle Nov 10 '15 at 09:53 PM

alt text

avatar image CKong Nov 11 '15 at 08:10 AM

Have you tried to put the code to stop the music here mate?

avatar image Pantlessnoodle Nov 11 '15 at 01:53 PM

I have tried but i don't know what to put in to stop the certain music file.

(comments are locked)
10|2000 characters needed characters left

Try to use audio component in level.

I have a problem with the audio, which when the game pauses for a few seconds the sound stops instead of pausing and returning from where it left off.

more ▼

answered May 02 '18 at 11:02 PM

avatar image

Night447
1 1

(comments are locked)
10|2000 characters needed characters left
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