Difference between revisions of "playMusicOnce(clip0, clip1)"

From pinHeck Wiki
Jump to: navigation, search
(Created page with "'''Example:''' playMusicOnce('M', 'N'); Pauses the currently playing music and plays the new file. Once the new file ends, the previous music is unpaused and continues playi...")
 
 
Line 3: Line 3:
 
playMusicOnce('M', 'N');
 
playMusicOnce('M', 'N');
  
Pauses the currently playing music and plays the new file. Once the new file ends, the previous music is unpaused and continues playing from where it left off.
+
Pauses the currently playing music and plays the new file (best used for short music clips or "award" jingles) Once the new file ends, the previous music fades back in and continues playing from where it left off.
  
 
One use for this is a Random Award. You might have some short music as the random award is picked, and then it will return to whatever music was playing before once done.
 
One use for this is a Random Award. You might have some short music as the random award is picked, and then it will return to whatever music was playing before once done.

Latest revision as of 15:33, 12 September 2015

Example:

playMusicOnce('M', 'N');

Pauses the currently playing music and plays the new file (best used for short music clips or "award" jingles) Once the new file ends, the previous music fades back in and continues playing from where it left off.

One use for this is a Random Award. You might have some short music as the random award is picked, and then it will return to whatever music was playing before once done.