playMaker

Author Topic: Play Sound (with a delay)  (Read 142 times)

NinjaX

  • Junior Playmaker
  • **
  • Posts: 91
  • XCO is the ULTIMATE IOS Ninja!!
    • View Profile
    • XCOGAMES
Play Sound (with a delay)
« on: September 30, 2017, 03:30:33 PM »
Super random sorry, but I was just thinking it would be convenient to have the PLAY SOUND action come with a delay if possible ?

Sometimes you need the sound clip to start in that state, that, say is 2 seconds long but you need the .5 audio clip to start at like .75 seconds or something like that. That was a specific example lol

Im just asking for a friend ...
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2265
    • View Profile
    • jinxtergames
Re: Play Sound (with a delay)
« Reply #1 on: October 01, 2017, 01:15:12 AM »
Hi,
I can't really find something on the unity documents/forum on how to do this.
If you find some scripts let me know so i could convert it to an action.

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Play Sound (with a delay)
« Reply #2 on: October 01, 2017, 03:23:35 AM »
If it is something that can be related to any variable (name of the enemy, sound clip, whatever), why not simply use wait before playing the clip?

NinjaX

  • Junior Playmaker
  • **
  • Posts: 91
  • XCO is the ULTIMATE IOS Ninja!!
    • View Profile
    • XCOGAMES
Re: Play Sound (with a delay)
« Reply #3 on: October 01, 2017, 10:50:21 AM »
TY for the replies... I guess its not a major thing. But would be convenient... I dunno.
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Play Sound (with a delay)
« Reply #4 on: October 16, 2017, 11:59:01 PM »
Hi,

 simply have a dedicated Fsm that receives a global event "PLAY SOUND DELAYED" and call that event, then the fsm implements a wait of x seconds and then play the sound.

 Bye,

 Jean