Water effect background...

It still works AFAIK, I use it in a few mods.  But it's better to use the bglayer command and setup water mode this way.

    ~{watermode} determines water effect. Currently there are 3 modes.
        0 = No water effect for this bglayer
        1 = Water effect for this bglayer is on
        3 = Mode 7 effect

Code:
bglayer {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} {watermode} {amplitude} {wavelength} {wavespeed} {bgspeedratio} / background {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha}

    ~These 2 command have same effect which is create a background layer with the image at {path}.
    ~The image used must have a width which is a multiple of 4 (ex. 4, 200, 128, not 3, 202, 130).
    ~The height could be any size but make sure it matches screen resolution to avoid void background areas.
    ~Just like any image used by OpenBoR, background and bglayers must use paletted images. In 8 bit colourdepth (default), it must use same palette as 'background' (see above). In 16/32 bit, it can use different palette
    ~Beware though, if bglayers use different palette than background, 'palette' command (see below) won't work
    ~The graphic automatically repeats if the stage is longer than the background.
    ~Layers are drawn in the order they are defined; currently, up to 100 are supported. However 'background' sets the bottommost layer while 'bglayer' sets layers in front of it.
    ~{xratio} and {zratio} determine how fast the layer will scroll; 1 = same scroll speed as panel, 0.5 = same as background, any float value can be used for them. It works also in levels with direction up or down but the layers will autoscroll just like background.
    ~{xposition} and {zposition} determine where the top left corner of the first layer will be. {xposition} is measured from left for direction right levels, from right for direction left, from bottom for direction up and from top for direction down levels.
    ~{xspacing} and {zspacing} determine how how much blank space there will be between repeated layers. Only works if you set repeating layers (see below).
    ~{xrepeat} and {zrepeat} determine how many times the image will repeat. Setting 0 will make layer not drawn at all (it will become palette holder). Setting -1 will make it repeat forever
    ~use 1 for {transparency} to have your transparency color not appear. Remember that this is more processor intensive, so don't use it on images that won't benefit from it. And don't use it for 'background' too since it's the bottommost layer. In 16/32 bit mode, pure black color will be used instead.
    ~{alpha} will display the image using alpha transparency. It works just like for entities. Possible values are 0 to 6. Don't use it for background too.
    ~{watermode} determines water effect. Currently there are 3 modes.
        0 = No water effect for this bglayer
        1 = Water effect for this bglayer is on
        3 = Mode 7 effect
    ~{amplitude} determines the amplitude of sine wave for water effect. Only apply if {watermode} is not 3 (see below)
    ~{wavelength} determines length of sine wave in pixels. It's repeated since it's sine wave. Only apply if {watermode} is not 3 (see below)
    ~{wavespeed} determines the moving speed of sine wave. Only apply if {watermode} is not 3 (see below)
    ~When {watermode} is set to 3, the next 3 parameters ( {amplitude} {wavelength} {wavespeed} ) becomes new ones: {beginsize} {endsize} {perspective}
    ~{beginsize} and {endsize} defines size multiplier of upper and lower border
 
BeasTie said:
It still works AFAIK, I use it in a few mods.  But it's better to use the bglayer command and setup water mode this way.

    ~{watermode} determines water effect. Currently there are 3 modes.
        0 = No water effect for this bglayer
        1 = Water effect for this bglayer is on
        3 = Mode 7 effect

Code:
bglayer {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} {watermode} {amplitude} {wavelength} {wavespeed} {bgspeedratio} / background {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha}

    ~These 2 command have same effect which is create a background layer with the image at {path}.
    ~The image used must have a width which is a multiple of 4 (ex. 4, 200, 128, not 3, 202, 130).
    ~The height could be any size but make sure it matches screen resolution to avoid void background areas.
    ~Just like any image used by OpenBoR, background and bglayers must use paletted images. In 8 bit colourdepth (default), it must use same palette as 'background' (see above). In 16/32 bit, it can use different palette
    ~Beware though, if bglayers use different palette than background, 'palette' command (see below) won't work
    ~The graphic automatically repeats if the stage is longer than the background.
    ~Layers are drawn in the order they are defined; currently, up to 100 are supported. However 'background' sets the bottommost layer while 'bglayer' sets layers in front of it.
    ~{xratio} and {zratio} determine how fast the layer will scroll; 1 = same scroll speed as panel, 0.5 = same as background, any float value can be used for them. It works also in levels with direction up or down but the layers will autoscroll just like background.
    ~{xposition} and {zposition} determine where the top left corner of the first layer will be. {xposition} is measured from left for direction right levels, from right for direction left, from bottom for direction up and from top for direction down levels.
    ~{xspacing} and {zspacing} determine how how much blank space there will be between repeated layers. Only works if you set repeating layers (see below).
    ~{xrepeat} and {zrepeat} determine how many times the image will repeat. Setting 0 will make layer not drawn at all (it will become palette holder). Setting -1 will make it repeat forever
    ~use 1 for {transparency} to have your transparency color not appear. Remember that this is more processor intensive, so don't use it on images that won't benefit from it. And don't use it for 'background' too since it's the bottommost layer. In 16/32 bit mode, pure black color will be used instead.
    ~{alpha} will display the image using alpha transparency. It works just like for entities. Possible values are 0 to 6. Don't use it for background too.
    ~{watermode} determines water effect. Currently there are 3 modes.
        0 = No water effect for this bglayer
        1 = Water effect for this bglayer is on
        3 = Mode 7 effect
    ~{amplitude} determines the amplitude of sine wave for water effect. Only apply if {watermode} is not 3 (see below)
    ~{wavelength} determines length of sine wave in pixels. It's repeated since it's sine wave. Only apply if {watermode} is not 3 (see below)
    ~{wavespeed} determines the moving speed of sine wave. Only apply if {watermode} is not 3 (see below)
    ~When {watermode} is set to 3, the next 3 parameters ( {amplitude} {wavelength} {wavespeed} ) becomes new ones: {beginsize} {endsize} {perspective}
    ~{beginsize} and {endsize} defines size multiplier of upper and lower border

Thanks... looks like this works on the update...
 
Back
Top Bottom