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
Explain the simplest way to use "different musics, different areas"
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#7
RE: Explain the simplest way to use "different musics, different areas"

If you like you could add the first function so it plays itself over and over again, I'll just post it all here;

Spoiler below!

DifferentMusic();

void Differentmusic()
{
PlayMusic("", true, 1.0, 4.0, 0, true);

AddTimer("Music", 10, "Music");
}

void Music(string &in asTimer)
{
SetLocalVarInt("music", 1);

AddLocalVarInt("music", RandInt(10, 15));
if(GetLocalVarInt("music") == 1)
{
PlayMusic("", true, 1.0, 4.0, 0, true);
}
else
{
PlayMusic("", true, 1.0, 4.0, 0, true);

DifferentMusic();
}
}


06-21-2011, 07:36 PM
Find


Messages In This Thread
RE: Explain the simplest way to use "different musics, different areas" - by rojkish - 06-21-2011, 07:36 PM



Users browsing this thread: 2 Guest(s)