playMaker

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

blackant

  • Sr. Member
  • ****
  • Posts: 295
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Trigger an event when audio Ended
« on: July 21, 2017, 05: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

  • Sr. Member
  • ****
  • Posts: 295
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Re: Trigger an event when audio Ended
« Reply #1 on: July 21, 2017, 06: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.

Carmichael

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Trigger an event when audio Ended
« Reply #2 on: July 22, 2017, 02: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.