playMaker

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

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Play Sound (with a delay)
« on: September 30, 2017, 06: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: 7615
    • jinxtergames
Re: Play Sound (with a delay)
« Reply #1 on: October 01, 2017, 04: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.

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Play Sound (with a delay)
« Reply #2 on: October 01, 2017, 06: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?
Available for Playmaker work

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Re: Play Sound (with a delay)
« Reply #3 on: October 01, 2017, 01:50:21 PM »
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: 15500
  • Official Playmaker Support
Re: Play Sound (with a delay)
« Reply #4 on: October 17, 2017, 02:59:01 AM »
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