I can't get rid of the sound in the air


The sound does not disappear in the air if you run and jump sharply please help

Hey @NailV123!

Before we go any farther, try removing the “NOT”. That will make the volume adjust only while you are in the air. Right now it is set to only adjust while you are on the ground.

If that doesn’t work, do you think you could try to be more detailed in your question? What is happening, what do you want to happen?

Feel free to try to use a translator, or post a larger amount in your native language and we can try to figure this out! :slight_smile:

1 Like

Привет, @Mind-Brain!

Хорошо напишу на своем родном языке я хочу чтоб звук не играл когда игрок находиться в воздухе(Оно происходит, когда начинаешь идти и потом прыгать, почему-то звук заедает и повторяется на всё время прыжка (звук не играет, если попробовать начать движение в воздухе))Так вот я хочу чтоб звук не залипал если
начинаешь идти и потом прыгать, почему-то звук заедает и повторяется на всё время прыжка

Hello, @Mind-Brain!

English translation, I want the sound not to play when the player is in the air(It happens when you start walking and then jump, for some reason the sound sticks and repeats for the entire time of the jump (the sound does not play if you try to start moving in the air))So I want the sound not to stick
start walking and then jump, for some reason the sound gets stuck and repeats for the entire time of the jump

Спасибо за помощь!
Thanks for helping!

Remove “Not boolean” it didn’t help

Убрать “Not boolean” не помогло

Oh, I understand!

You need to use the “False” output of the branch. What happens in the false branch will be what happens when you are in the air. If you want the sound to stop, use another “Adjust Volume” node and set it to 0! :slight_smile:

Hope that solves it!

1 Like


Like this?
If anything it didn’t help I get this error:
Runtime schema error: “An attempt was made to access AudioComponent_0 via the Sounde property, but AudioComponent_0 is not valid (pending elimination or disposal).” Node: Adjust Volume Graph: EventGraph Function: Execute Ubergraph Ball Mini Schema: Charmini/

Interesting… Yes just like that, the error is a new thing to worry about.

It is saying when it tries to execute, there is not an audio component.

Throw on a couple of “IsValid?” checks and it should resolve it!

1 Like

For some reason, after the 1st operation, it gives the same error again

Can you show your code? It shouldn’t give that error unless it’s being called before an IsValid check!

1 Like

Okay right now

Hey, @Mind-Brain !

Strangely, the error disappeared(the editor stopped displaying that message)
But the error appeared that after landing the sound does not work

Good to hear!

Landing sound? Can you elaborate? Is this a different sound?

1 Like

Звук ходьбы “Sound” не работает после приземления когда я пытаюсь идти заново

Sound of walking “Sound” It doesn’t work after landing when I try to walk again

Sorry for a bad translation

Hah my sound generally stopped working after adding two “Is valid” but the editor stopped giving an error

So to explain what is happening here:

“IsValid?” Checks to see if the target EXISTS. The variable is simply a reference. If it is EMPTY, it will return “Not Valid”. Because if you try to access a reference but it isn’t valid, it will crash your game, guaranteed. This is known as a “Null Reference Exception”, and this is why “IsValid?” checks are necessary.

It does not make sense that it worked before, but does not work now.

Maybe try disconnecting the clamp and putting in a volume level for the “False” path, to check if it’s a problem with the volume level?

1 Like

@Mind-Brain

Sorry I’m already passing out on the move, so I’ll answer in the morning again.

Hi @Mind-Brain !

like this?

Sorry, here’s a visual representation.

The point here is to find out if the problem is Volume or References. :slight_smile:

1 Like