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"

Why my sound cue doesn't play

I've banging my head on different books and tutorials online but I just can't make my sound cue play based on a collision. No Idea like what is there I'm missing.

Can somebody please please help me with this. Would really appreciate italt text

Product Version: UE 4.14
Tags:
blueprint.png (167.5 kB)
more ▼

asked Feb 13 '17 at 06:37 PM in Using UE4

avatar image

CreativeArch
5 3 8 9

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

1 answer: sort voted first

I think your problem is that you update the set sound node every frame. I'm not sure exactly what you are trying to do, but if you just want to play the sound you can just remove both the EventBeginPlay and the Set Sound node.

Hope this helps :)

more ▼

answered Feb 13 '17 at 06:50 PM

avatar image

Rasmus Hauschild
23 3 7 9

avatar image CreativeArch Feb 13 '17 at 06:54 PM

I'm trying to play a sound loop when a actor overlap event triggers and stop the sound when overlap ends. I saw in one tutorial that I need to set sound in the starting so that's why setsound node is there.

avatar image Rasmus Hauschild Feb 13 '17 at 06:57 PM

If you want to loop the sound that you are playing you can just locate it in your content browser - double click it and then select looping under Sound Wave.

avatar image CreativeArch Feb 13 '17 at 07:02 PM

:) I know that how to loop a sound but I'm saying here that loop it on a trigger

I have a collision box, when I walk through it, my character overlaps with the collision and initiates a trigger , called , OnActorOverLapBegin, this is when I want to play the sound and stop the sound when my character comes out of the collisionbox which initiates a trigger OnActorEndOverlap.

avatar image Rasmus Hauschild Feb 13 '17 at 07:08 PM

I don't think I understand what the problem is. If you set the sound to looping and uncheck auto activate, then you could activate and deactivate it with the trigger, and it would automatically loop while playing. Sorry if I keep misunderstanding! :)

avatar image CreativeArch Feb 13 '17 at 07:14 PM

You are trying :)

ok lets forget about the looping thing

All i want to do is play a nice soft music when my character enter block collision

And I want to stop the same nice soft music when my character leaves the block collision

That's all I want to do :)

Forget what I have done , help me that how should I do it?

avatar image CreativeArch Feb 13 '17 at 07:21 PM

Don't bother, I solved it hahaha , I guess I just needed somebody to discuss like LIVE lol. and it worked well, urggggggh , thanks for listening me OUT :D

avatar image Rasmus Hauschild Feb 13 '17 at 07:24 PM

Thank you ;) I have recreated your blueprint, and it works just fine for me. The only reason I can think of for why it's not working for you is if your audio file is not a 16bit .wav file, but instead something like an mp3 or similar. Otherwise, I don't know what it could be :/

(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