Sound Effect while Jumping

I should know how to do this. But, I am having an issue where I’m trying to play a sound effect while the character is jumping. It needs to play the sound effect once and you can’t activate the sound until the character hits the ground.

You can open the animation and click on the timeline to add sound effects directly - but I prefer to have more control over things like volume, location, playing alternate sounds based on environment/character type…etc.

.

To do that you need to add Notifies to the points in the animation you want the sounds to play.

.

Then you open the Anim Blueprint for that skeleton and right click in the Event Graph - and have the notifies set a Boolean indicating the sound should be played.

.

And in your various character/AI blueprints, when Jump is initiated - activate a timer that calls an event checking for those bools, and playing the appropriate sound when they are set.

This way you can play different sounds under different circumstances. Larger or smaller characters using the same skeleton, with higher/shallower jump limits set, and so forth.

There is a flaw in the blueprint above - it doesn’t turn off the bool for Lift Off sound, so it would start a copy of the sound every time the timer ticked until the landing notifier turned it off :wink:

Just add a [set Lift Off Sound] from the cast on the branch that plays the sound.