ScrollMaterial()

Syntax

ScrollMaterial(#Material, x, y, Mode [, Layer])
Description
Scrolls the material layer according to x,y values.

Parameters

#Material The material to use.
x, y The texture scroll offset, in pixels.
Mode It can be one of the following value:
  #PB_Material_Fixed   : The material is scrolled of the specified x,y offset, without regards of the previous scroll function.
  #PB_Material_Animated: Each frame is the material is scrolled of the specified x,y offset automatically.
Layer (optional) The layer to scroll. The first layer is zero. If this parameter is omitted, the layer zero is scrolled.

Return value

None.

Remarks

To get the current scroll values, use GetMaterialAttribute().

See Also

GetMaterialAttribute()

Supported OS

All

<- ScaleMaterial() - Material Index - SetMaterialAttribute() ->