Newbee Sound Question
![mcarrera](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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
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
-
gyroscope I am here.Posts: 6,598
@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.""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
Jamie
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page