Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: blackant on July 21, 2017, 08:55:27 AM

Title: Trigger an event when audio Ended
Post by: blackant on July 21, 2017, 08:55:27 AM
Hello everyone,

i'm acually working on a juckbox wich will play a random music at start.
but because music are all different i would like that when one finishes another random music starts.

so how can i do that ?
Title: Re: Trigger an event when audio Ended
Post by: blackant on July 21, 2017, 09:50:15 AM
well i finally fund a way by dragging the audio inside action, i can get the property "is Playing", so testing is bool allow me to exit the action when audio ended.
Title: Re: Trigger an event when audio Ended
Post by: Ofonna on July 22, 2017, 05:17:59 PM
you could also use audio play, theres and event option there, it wouldn't go to the next state until the audio is finished, or you audio play advanced in the ecosystem.