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 Music Replaying In Different Levels?
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#2
RE: Music Replaying In Different Levels?

In every level's script add this function:

PHP Code: (Select All)
void OnEnter()
{
    
StopMusic1);
    
StopMusic1);
    
StopMusic1);
    
    
StopPlayerLookAt();
    
ChangePlayerStateToNormal();
    


The first three lines stops the music of priority 0,1 and 2.
StopPlayerLookAt() stops the camera in case the previous level called a StartPlayerLookAt() and couldn't end it.
Then, ChangePlayerStateToNormal(); resets some stats, but I don't remember why I put this here, but it stops strange behavior brought from the previous level.

04-05-2015, 01:05 PM
Find


Messages In This Thread
RE: Music Replaying In Different Levels? - by Daemian - 04-05-2015, 01:05 PM



Users browsing this thread: 1 Guest(s)