Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sound not playing (Read if you want to have different times on looping sounds)
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#6
RE: Sound not playing

(05-21-2012, 03:44 PM)Putmalk Wrote: Hey i3670,

I like your script, it's a bit complicated (than what I'm used to seeing on here) but it seems like it does its job efficiently.

Did you name your areas "WindSound_1", "WindSound_2", etc.?

Are you sure your timer is sounding off properly?

What I would do is add the following lines of code inside your WindTimer function:
AddDebugMessage("Firing WindTimer function", false);

(after the variables are declared)
AddDebugMessage("Playing sound WindSound_"+iWind, false);

Tell me what the results are. Make sure debug messages are enabled for your profile!

(05-21-2012, 03:26 PM)Stepper321 Wrote: iWind? fWind? What the fuck is going on?

He's creating variables to randomize the time and area at which the sounds are played. "fWind" is a float, while "iWind" is an integer; floats are floating point numbers (decimals) while integers are 1, 2, 3, etc.
Yes the areas where the sound is playing is WindSound_1 to WindSound_7

Don't have the debug messages active atm. Other than that, would there be any other reason to why it wouldn't sound?

"What you think is irrelevant" - A character of our time

A Christmas Hunt
05-21-2012, 04:11 PM
Find


Messages In This Thread
RE: Sound not playing - by Stepper321 - 05-21-2012, 03:26 PM
RE: Sound not playing - by Putmalk - 05-21-2012, 03:44 PM
RE: Sound not playing - by Datguy5 - 05-21-2012, 03:48 PM
RE: Sound not playing - by Putmalk - 05-21-2012, 03:52 PM
RE: Sound not playing - by Datguy5 - 05-21-2012, 04:48 PM
RE: Sound not playing - by Stepper321 - 05-21-2012, 06:24 PM
RE: Sound not playing - by i3670 - 05-21-2012, 04:11 PM
RE: Sound not playing - by i3670 - 05-21-2012, 06:58 PM
RE: Sound not playing - by i3670 - 05-22-2012, 03:44 PM



Users browsing this thread: 1 Guest(s)