I can't figure out how to get the music to stop after 10 seconds. I have tried the timer please look at the video.
I hope to get some help. (:
Merry Christmas Conner
Comments
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
A "For" timer isn't as useful as it might seem. It really only works for a few behaviors and Play Music is not one of them. The Play Music behavior starts playing a sound file. Unless your sound file is 10 seconds in length, it won't stop just because you have it in a "For 10 seconds" timer.
The solution is to remove that timer and below the Play Music behavior add an "After 10 seconds" timer with a Stop Music behavior (make sure that 'Run to completion' is checked).
Comments
The solution is to remove that timer and below the Play Music behavior add an "After 10 seconds" timer with a Stop Music behavior (make sure that 'Run to completion' is checked).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks so much! It works now!
Have a great Christmas
Conner
play music after ten seconds stop music
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Thanks
Merry Christmas, guys!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User