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"

How to stop a 2d sound from another blueprint

Hey guys, In my game I have 2 sounds. the first soundtrack gets played when te game starts (character pawn overlaps box immediately), but after a while when the character pawn overlaps another box, I wat the first 2d sound to stop and the second one to start. The problem now is, that the 2nd 2D sound gets played, but the first one does't stop.

How do I stop this sound effectively?alt text

alt text

Product Version: UE 4.19
Tags:
playsoundbp2.png (56.1 kB)
playsoundbp.jpg (170.0 kB)
more ▼

asked Jul 25 '18 at 10:30 AM in Blueprint Scripting

avatar image

YssfQwl
6 1 1

avatar image YssfQwl Jul 26 '18 at 03:53 PM

No one????

avatar image Placinta8 Jul 26 '18 at 04:29 PM

Does the On Component Begin Overlap work? Try placing a print string node instead of the stop node and see if it works

avatar image YssfQwl Jul 27 '18 at 01:51 AM

Yes, the on component begin overlap works. But I see that the casting doesn't work. How could I cast the right way?

avatar image Placinta8 Jul 27 '18 at 04:49 AM

Check if the PlaynewMusic actor has the correct type of collision. Setting it to Overlap All should work. The casting is done correctly, so it's probably because the pawn and the music actor aren't overlapping.

avatar image SaitYavuz Aug 02 '18 at 03:32 AM

Stop the first sound before playing the second sound.

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

0 answers: sort voted first
Be the first one to answer this question
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