Lizard
Member
Posts: 174
Threads: 23
Joined: Jul 2012
Reputation:
5
|
RE: Collapse area not working?
here is an PlayMusic example:
PlayMusic("09_amb_safe.ogg", true, 1, 1, 1, true);
09_amb_safe.ogg is the music file to be played
the first true is if the file should loop (play it self again and again)
first "1" is the volume on the music (1 is standard)
second "1" is how many seconds it will take for the music to hit its the max volume
thirth "1" is the priority of the music. Note that only the music with the highest priority can be heard! 0 - lowest, 1 - higher, etc.
the last true means if i use stopmusic, and start the same music again later, it will continue playing where it got cut off.
PlayMusic if mostly used in OnEnter(), so that it plays everytime the player enters the map (background music/ambience in the map)
CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 03-23-2013, 04:25 PM by Lizard.)
|
|
03-23-2013, 04:21 PM |
|