YesNoOk
avatar

SndPan (SCTRL) (Read 1997 times)

Started by Just No Point, October 31, 2015, 12:09:26 am
Share this topic:
SndPan (SCTRL)
New #1  October 31, 2015, 12:09:26 am
  • ******
    • www.justnopoint.com/
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)
StopSnd (SCTRL)
Last Edit: November 25, 2015, 05:27:46 am by Odb718