Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / How to make a series of sounds play in one script?

Author
Message
TerrorNation
16
Years of Service
User Offline
Joined: 18th Dec 2009
Location:
Posted: 17th Apr 2010 12:21
How would you make a script to play three sounds in order, without them layering each other and playing at the same time, like this script:



Any help?
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 17th Apr 2010 12:24
You can use a timer, and when it reaches a certain limit make it play the next sound.

Like this:

:state=0:timerstart,sound=mysoundname.wav,state=1
:state=1,timergreater=10000:timerstart,sound=mysoundname2.wav,state=2
:state=2,timergreater=10000:timerstart,sound=mysoundname3.wav,state=3


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
TerrorNation
16
Years of Service
User Offline
Joined: 18th Dec 2009
Location:
Posted: 17th Apr 2010 12:43
Oh ok thanks. I'll use PB's etimer command for this. I as hoping I didn't need to use a timer, but it looks like I have to.
Johnski
16
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: Norfolk, UK
Posted: 17th Apr 2010 15:11
That is what wehtam did for his Beyond life game- which is awesome by the way

We specialise in game design, logo design and T-shirts.

check out our blog: http://www.designbreif.wordpress.com

Login to post a reply

Server time is: 2026-07-17 14:00:15
Your offset time is: 2026-07-17 14:00:15