Newbee Sound Question

mcarreramcarrera Member Posts: 3
edited July 2012 in Working with GS (Mac)
Hi Everyone,

A simple question for the pro's out there I'm sure. Is there a way to prevent a behavior until after a sound has played through to it's completion?

I'm doing a story book and I have audio narration. I want the narration to play through to its completion before any of the actors in the scene become active. Is this possible? When I try to work with variables, they don't really "wait" for the sound to finish. (the sound gets triggered and then the Change Attribute behavior immediately following the Play Sound behavior doesn't wait for the sound to finish - if that makes any sense?).

Anyway, any help from anyone would be AMAZING! Thanks,

Mike

Best Answer

  • gyroscopegyroscope I am here.Posts: 6,598
    edited July 2012 Accepted Answer

    @mcarrera

    Hi Mike, first, find out the exact length of time of your audio narration (in an audio editor or Garageband, etc). Then make a boolean attribute, call it A1trigger set to the default false (i.e unchecked).

    So your rules:

    Play Sound Audiotrack
    Timer: After ?? seconds ------ the length of the audio track
    Change attribute A1trigger to true

    And then add in front of your rules for all of your actors:

    Rule: When attribute A1trigger is true
    Change Attribute, etc.

Answers

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I'm thinking you might have to play your audio, and delay your other behaviors using a timer that is the length of your audio.

    Jamie
  • mcarreramcarrera Member Posts: 3
    Thanks gyro! Don't know why I didn't think of that. (I guess I was thinking there'd be some sort of rule or something that said "after this sound plays, do this...") But that worked great.
Sign In or Register to comment.