YesNoOk
avatar

PalFX and AllPalFX and BGPalFX (SCTRL) (Read 3626 times)

Started by Just No Point, October 22, 2015, 05:11:15 pm
Share this topic:
PalFX and AllPalFX and BGPalFX (SCTRL)
#1  October 22, 2015, 05:11:15 pm
  • ******
    • www.justnopoint.com/
PalFX applies temporary effects the player's palette. These will also affect the palette of any explods and helpers the player owns, unless they have specified ownpal = 1.

AllPalFX is the same as PalFX, except that this affects the palette of the background and lifebars as well as the palette of all characters and explods (regardless of the ownpal parameter)

BGPalFX is the same as PalFX, except that this affects the palette of the background and lifebars instead of the palette of the character.

Format:
    1.) PalFX
    2.) AllPalFX
    3.) BGPalFX

Required parameters:
none

Optional parameters:
time = duration (int)
Specifies the number of ticks that the palette effects should last. Specify -1 to have the palette effects last indefinitely. Specify 0 to stop any ongoing

palette effects.
add = add_r, add_g, add_b (int, int, int)
See below.

mul = mul_r, mul_g, mul_b (int, int, int)
Each add component is added to the appropriate component of the player's palette, and the result is multiplied by the appropriate mul component divided by 256. For instance, if pal_r is the red component of the character's original palette, then the new red component is (pal_r + add_r) * mul_r / 256. The values for mul must be >= 0. The defaults for these parameters are for no change, i.e. add = 0,0,0 and mul = 256,256,256.

sinadd = ampl_r, ampl_g, ampl_b, period (int, int, int, int)
Creates an additional sine-wave palette addition effect. Period specifies the period of the sine wave in game ticks, and the amplitude parameters control the amplitude of the sine wave for the respective components. For instance, if t represents the number of ticks elapsed since the activation of the PalFX controller, and pal_r is the red component of the character's original palette, then the red component of the character's palette at time t is (pal_r + add_r + ampl_r * sin(2 * pi * t / period)) * mul_r / 256.

invertall = bvalue (bool)
If bvalue is non-zero, then the colors in the palette will be inverted, creating a "film negative" effect. Color inversion is applied before effects of add and mul. bvalue defaults to 0.

color = value (int)
This affects the color level of the palette. If value is 0, the palette will be greyscale. If value is 256, there is no change in palette. Values in between will have an intermediate effect. This parameter's effects are applied before invertall, add and mul. Values must be in range 0 to 256. Default value is 256.

Example:
none
Last Edit: November 04, 2015, 08:04:37 pm by Just No Point
Re: PalFX and AllPalFX and BGPalFX (SCTRL)
#2  March 28, 2017, 07:47:41 pm
  • *****
  • Shame on you!
    • USA
vVv Wheat Stage Released vVv