playMaker

Author Topic: Trigger an event when audio Ended  (Read 1450 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Trigger an event when audio Ended
« 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 ?

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Trigger an event when audio Ended
« Reply #1 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.

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: Trigger an event when audio Ended
« Reply #2 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.