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 Stops After Death
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#1
Music Stops After Death

So, when testing my custom story I discovered that upon death, the music I had set to play in the map would stop playing until the player leaves the map and comes back. Anyone know why this might be? I have it set to resume, however I only have PlayMusic set inside OnEnter. Music also stops playing upon loading a saved game, but only in some maps. Any help with this problem would be greatly appreciated, and thanks in advance Smile

03-15-2011, 11:46 PM
Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#2
RE: Music Stops After Death

Put it in OnStart

(This post was last modified: 03-16-2011, 12:24 AM by Viperdream.)
03-16-2011, 12:23 AM
Find
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#3
RE: Music Stops After Death

Ah. Thanks Smile

03-16-2011, 12:42 AM
Find
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#4
RE: Music Stops After Death

Interesting that OnStart would fix, since I've always had my music in OnStart, yet if I die, it doesn't start up again and it is set to repeat/loop.

Check out my custom stories(1)(2)!
03-16-2011, 05:36 AM
Find
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#5
RE: Music Stops After Death

Actually I haven't died since then, so I'm not sure if it works or not. I was still trying to work out the rest of the bugs in the coding, but still managed to live every time. The odd thing is, though, it works on a map where the music starts after a certain function is called, but not on the maps where I have the music within either the OnStart or OnEnter. Also, I noticed that putting it in OnStart makes it fail to resume after leaving and coming back, so there should be a better solution.

03-16-2011, 05:48 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: Music Stops After Death

OnEnter?
Everytime you enter.

03-16-2011, 11:05 AM
Website Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#7
RE: Music Stops After Death

If you have checkpoints, you could enter the PlayMusic script at the void of the checkpoint.

If you can die in a map, then you should also have some checkpoints.

03-16-2011, 01:35 PM
Find




Users browsing this thread: 1 Guest(s)