Announcement

Collapse
No announcement yet.

Activating unwanted sound

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Activating unwanted sound

    Hello people!!! First of all, I want to apologize if I posted in the wrong section (this is my first post on the forum).

    I am a beginner and I have created a simple project of Roller Ball as you can see in the video that I will attach in this post. However, I have a problem - notice the sound which plays when I collect the coin. There is another sound which plays as soon as I step on the platform. The problem is that when the elevator sound plays, it also plays sound for collecting the coin, which is not what I want. Obviously, there is no coin on the platform. Watch the video and you will see what I mean.
    VIDEO: https://youtu.be/JZZCo0bXsDU

    There are screenshots of blueprints:
    http://prntscr.com/bk660y
    http://prntscr.com/bk66eg
    I apologize in advance if there is similar problem on the HUB, but I could not find it. If so, please attach the link if you can.

    Thank you!!!!

    #2
    Originally posted by madlion View Post
    Hello people!!! First of all, I want to apologize if I posted in the wrong section (this is my first post on the forum).

    I am a beginner and I have created a simple project of Roller Ball as you can see in the video that I will attach in this post. However, I have a problem - notice the sound which plays when I collect the coin. There is another sound which plays as soon as I step on the platform. The problem is that when the elevator sound plays, it also plays sound for collecting the coin, which is not what I want. Obviously, there is no coin on the platform. Watch the video and you will see what I mean.
    VIDEO: https://youtu.be/JZZCo0bXsDU

    There are screenshots of blueprints:
    http://prntscr.com/bk660y
    http://prntscr.com/bk66eg
    I apologize in advance if there is similar problem on the HUB, but I could not find it. If so, please attach the link if you can.

    Thank you!!!!
    Hi madlion,

    The reason you are hearing the coin sound over the elevator is because you are calling the coin sound on overlap in your player pawn. Instead, try calling it on overlap within the coin blueprint. That way, it only plays when a coin is rolled over, not when the player overlaps something. In general, sounds associated with specific items/blueprint should be called within that item/blueprint, it is significantly easier to manage in the long term.
    Adam Davis | Marketplace Support | Epic Games
    How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

    Comment


      #3
      Can you please show screenshots of your Blueprints for the Coins and the Elevator, especially the part that Triggers the elevator.

      You must have another PlaySoundAtLocation node somewhere that is causing this issue for you.
      Im an Moderator on UnrealSlackers Discord! Which is a Community driven group of likeminded people here to discuss UE4! Join UnrealSlackers on Discord!

      Comment


        #4
        Here are the blueprints:

        elevator (level blueprint) : http://prntscr.com/bkcrb9

        coin blueprint: http://prntscr.com/bkcrrm

        player (ball) blueprint: http://prntscr.com/bkcs8o ; http://prntscr.com/bkcse1 ; http://prntscr.com/bkcsjo


        EDIT


        This is how I solved it : http://prntscr.com/bkcw7o

        I added event "OnComponnentBeginOverLap" and it works, though I do not see it executing in the blueprint screen
        Last edited by madlion; 06-24-2016, 03:35 AM.

        Comment

        Working...
        X