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
Custom sound files when interacting with objects...
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#6
RE: Custom sound files when interacting with objects...

(09-20-2011, 06:23 PM)Pr3d4t0r Wrote: Thank you very much ! But when will the sound start with these lines ? At the beginning of the map ? Because I just want to implement a music in the beginning of the map, wich is looped BUT only in a certain area ! Something like when you get out of the room, you can't hear the music anymore but when you come back into this room, you can hear this music again.
I added a sound entity with my ogg.file in the area where i want my sound to play. But if I leave this area, will the music stop ?
If I understand your question correctly, the sounds will play over top of the ambient music. And I can't think of any special way of playing the music in a certain room. All I can think of would be to have an area on each side of the door, and corresponding collidecallbacks. In the one outside the room, you use a StopMusic function (on the wiki) and in the one for inside, PlayMusic. Just don't autodelete the collide callback, and it should work fine. There's probably a better way to do this, but it's all I can think of at the moment.

09-20-2011, 07:16 PM
Find


Messages In This Thread
RE: Custom sound files when interacting with objects... - by Obliviator27 - 09-20-2011, 07:16 PM



Users browsing this thread: 2 Guest(s)