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
How can I script this sound so it plays correctly?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: How can I script this sound so it plays correctly?

Nah OnLeave() is for when you exit the entire map. Just make a collide callback function that fades the sound out when you go a certain distance into the cave. And if they backtrack, make it start the sound again (put 3 or a similar number for the fade-in effect in the function) as long as alState is -1. You will also need to make the area cover the whole cave, or else they'll pass through the area and the sound will stop for a moment, the restart (because they exited the area but are still inside the cave)

04-11-2011, 02:33 AM
Find


Messages In This Thread
RE: How can I script this sound so it plays correctly? - by palistov - 04-11-2011, 02:33 AM



Users browsing this thread: 2 Guest(s)