Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music Stops After Death
Author Message
Anxt Offline
Senior Member

Posts: 588
Joined: Mar 2011
Reputation: 10
Post: #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 all posts by this user Quote this message in a reply
Viperdream Offline
Member

Posts: 124
Joined: Jan 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Anxt Offline
Senior Member

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

Ah. Thanks Smile

03-16-2011 12:42 AM
Find all posts by this user Quote this message in a reply
theDARKW0LF Offline
Member

Posts: 150
Joined: Sep 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Anxt Offline
Senior Member

Posts: 588
Joined: Mar 2011
Reputation: 10
Post: #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 all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

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

OnEnter?
Everytime you enter.

03-16-2011 11:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Viperdream Offline
Member

Posts: 124
Joined: Jan 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)