The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => MUGEN Class => Topic started by: Just No Point on October 31, 2015, 12:09:26 am

Title: SndPan (SCTRL)
Post by: Just No Point on October 31, 2015, 12:09:26 am
Changes the panning of a currently playing sound. This controller may be continually triggered to smoothly move a sound across the sound field or to have a sound follow the player.

Required parameters:
channel = chan_no (int)
Specifies the channel number of the sound to pan.

pan = p OR abspan = p (int)
These parameters cannot both be specified at the same time. p determines the sound offset in pixels from the player (in the case of pan) or from the center of the screen (in the case of abspan). See PlaySnd for a description of the panning parameters.

Optional parameters:
none

Example:
Code:
;Fighter Factory 3
[State 0, SndPan]
type = SndPan
trigger1 =
channel = 1
abspan =  160        ;pan = 50
;ignorehitpause =
;persistent =

Related Triggers: 
PlaySnd (sctrls) (http://mugenguild.com/forum/topics/playsnd-sctrls-169020.0.html)
StopSnd (SCTRL) (http://mugenguild.com/forum/topics/stopsnd-sctrl-170202.0.html)