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
How i can reload script area when i die ? And how to create loopable sounds ?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#11
RE: How i can reload script area when i die ? And how to create loopable sounds ?

(08-01-2012, 12:25 AM)rakakak11 Wrote: This is what im looking for !!! Heart

Sound now work but the "scare_male_terrified" didnt work... i deleted this "scare_male_terrified"
+RandInt(1, 3) and now "scare_male_terrified" sound work ! Big Grin Im again really grateful for help.

But what is this thing that i deleted ? "+RandInt(1, 3)"
RandInt(1, 3) will create a Random Integer (whole number, not a decimal) between the amounts provided. When the function is called, it would produce either 1, 2, or 3. Same idea with the timer, it will make a random number from 30 to 60. In my opinion, using Random Integers is ideal for random ambient sounds.

I sorta contradicted what I said earlier though; scare_male_terrified1/2/3 are .ogg, not .snt, so they wouldn't work. Just using the scare_male_terrified alone would randomly pick from the set.

I rate it 3 memes.
08-01-2012, 12:36 AM
Find
rakakak11 Offline
Junior Member

Posts: 20
Threads: 3
Joined: Jul 2012
Reputation: 0
#12
RE: How i can reload script area when i die ? And how to create loopable sounds ?

(08-01-2012, 12:36 AM)andyrockin123 Wrote:
(08-01-2012, 12:25 AM)rakakak11 Wrote: This is what im looking for !!! Heart

Sound now work but the "scare_male_terrified" didnt work... i deleted this "scare_male_terrified"
+RandInt(1, 3) and now "scare_male_terrified" sound work ! Big Grin Im again really grateful for help.

But what is this thing that i deleted ? "+RandInt(1, 3)"
RandInt(1, 3) will create a Random Integer (whole number, not a decimal) between the amounts provided. When the function is called, it would produce either 1, 2, or 3. Same idea with the timer, it will make a random number from 30 to 60. In my opinion, using Random Integers is ideal for random ambient sounds.

I sorta contradicted what I said earlier though; scare_male_terrified1/2/3 are .ogg, not .snt, so they wouldn't work. Just using the scare_male_terrified alone would randomly pick from the set.
thanks Smile
08-01-2012, 01:25 AM
Find




Users browsing this thread: 1 Guest(s)