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"

Need sound to finish loop before stopping

alt text

Hi everyone, I've got the sound to play when LMB is clicked and to stop when LMB is released. Is there a way to have the sound play the rest of its' loop before it stops? Right now it's very abrupt.

Product Version: UE 4.14
Tags:
sfx 1.png (110.0 kB)
more ▼

asked Jun 23 '17 at 02:16 PM in Blueprint Scripting

avatar image

1st impact
1 1 4

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

2 answers: sort voted first

On your finished event add a re-triggerable delay and set it to the time span of your audio that should give it enough time to finish before it stops.

more ▼

answered Jun 27 '17 at 06:19 AM

avatar image

davo32
6 5 7

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

You can check the Playtime and make a modulo operation with your loop time. Then you subtract your loop time by the calculated value and you get the rest of the time that needs to be played. Save this variable and use it either for a Fade Out or Delay Node before stopping. Let me know if it helps! <3

more ▼

answered Jun 23 '17 at 02:25 PM

avatar image

Ninjin
3.9k 87 36 149

avatar image 1st impact Jun 23 '17 at 02:35 PM

Unfortunately not, but at least I know it's possible now.

I'm not terribly experienced with blueprints, is it possible to see a mockup anywhere without sounding too cheeky?

(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