Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on October 03, 2016, 12:38:49 AM
-
Is there a way to send an event from a moment in an audio track? Wanting to do something like an animation event where at a certain moment in the animation, it sends an event, but with audio mixer.
Specifically, i'm trying to play an animation of a drummer hitting the snare when the snare hits in the song.
Thanks for any thoughts.
-
Hi,
i don't think you can let the track send an event, so what you can do depends if your snare is a separate loop (a single snare hit looping) or not
if it is you could try not using loop but let it finish and then have a state to send a event to the animatior and tweak the animation for the timing.
If not you can maybe try calculating the beats per minute and get the time between a single beat.
Then use that info in a wait and loop that with a send event to the animator.
-
maybe this will help:
http://hutonggames.com/playmakerforum/index.php?topic=13667.0
You can get the playback time on the audio track and based on your int/float criteria send an event.
-
Cool thanks for the ideas guys i'm going to try this audio float first.
-
Hi,
Let us know how if it worked :)
-
Sorry for the late response. Audio Get Time action works great. Thanks guys.