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
Music Won't Stop [Solved]
D3AD UPR1S1NG Offline
Member

Posts: 64
Threads: 21
Joined: Apr 2011
Reputation: 0
#3
RE: Music Won't Stop

(05-02-2011, 02:56 PM)Roenlond Wrote:
(05-02-2011, 02:39 PM)D3AD UPR1S1NG Wrote: I've been having this really annoying problem lately where even if I set the StopMusic script the game just overlooks it and the song keeps on playing and it is really annoying Sad so anyone know how to fix this?

Make sure you use the correct priority. For example:



void OnStart()
{
PlayMusic("musicfile", true, 1.3f, 4.0f, 10, true);
}

void OnLeave()
{
StopMusic(0, 10);
}



The bold part is the priority, which in this case is 10. The stopmusic bold part needs to be the same as the playmusic bold part =)

Hasn't worked although I didn't want the music to stop when the player leaves the area, It was when they entered a script area thanks for your help though

The Harrowing Tale Of Redendrew Mansion
05-02-2011, 03:05 PM
Find


Messages In This Thread
Music Won't Stop [Solved] - by D3AD UPR1S1NG - 05-02-2011, 02:39 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 02:56 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-02-2011, 03:05 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 03:07 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-02-2011, 03:16 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 03:24 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-02-2011, 06:34 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 06:50 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-03-2011, 10:31 PM



Users browsing this thread: 1 Guest(s)