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
Script Help Random Sounds while playing
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#4
RE: Random Sounds while playing

I'll tell you the basic idea of how I do this. If you need something more in-depth with actual script, let me know, and I'll cook some up.

Use a timer which will generate a random localint whenever it ticks. In the exact same timer script, use a "switch" script to determine which localint was generated, and play an according sound. At the end of all this, don't forget to recall the same timer so the random sound can happen again.

[Image: Tv0YgQb.gif]
Image by BandyGrass
10-05-2012, 03:37 PM
Find


Messages In This Thread
Random Sounds while playing - by Vic7im - 10-05-2012, 02:55 PM
RE: Random Sounds while playing - by Robby - 10-05-2012, 03:00 PM
RE: Random Sounds while playing - by Vic7im - 10-05-2012, 03:23 PM
RE: Random Sounds while playing - by Kreekakon - 10-05-2012, 03:37 PM
RE: Random Sounds while playing - by Robby - 10-05-2012, 03:39 PM
RE: Random Sounds while playing - by Vic7im - 10-05-2012, 03:54 PM



Users browsing this thread: 1 Guest(s)