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
Texture, Model & Animation Help Music "Lower" if player enters area
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#5
RE: Music "Lower" if player enters area

(10-05-2015, 06:59 PM)Mudbill Wrote: Running this:

PHP Code: (Select All)
PlayMusic("in_motion.ogg"false101true); 

Then later running this:

PHP Code: (Select All)
PlayMusic("in_motion.ogg"false0.212true); 

Achieves this effect. It starts the music at standard volume, then fades it down to 0.2.
I took this code from my Intro/Outro video, which shows the effect in action.

I know that, and I did that.
but the sound is staying at the same volume, maybe something is wrong with my music snt file?!

PHP Code: (Select All)
<SOUNDENTITY>
  <
SOUNDS>
      <
Main>
          <
Sound File="SnowStorm" />
      </
Main>
  </
SOUNDS>
  <
PROPERTIES Volume="0.5" MinDistance="20" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="True" Loop="True" Use3D="False" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</
SOUNDENTITY

Btw, if it would work, how am I supposed to do the "IF" thing?
I tried some things but couldn't end up at the thing I wanted to end,
so basically, If the player is inside of an AREA, the "void" will start, so basically, the music will be lower, and if the player leaves the area, the other thing will happen, which makes the music at the normal state...
I know most of the scripting but this one is a little bit weird to me...
10-06-2015, 06:04 PM
Find


Messages In This Thread
RE: Music "Lower" if player enters area - by Amnesiaplayer - 10-06-2015, 06:04 PM



Users browsing this thread: 3 Guest(s)