ScrollMaterial()
语法
ScrollMaterial(#Material, x, y, Mode [, Layer])概要
Scrolls the material layer according to x,y values.
参数
#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.
返回值
无.
Remarks
To get the current scroll values, use GetMaterialAttribute().
参阅
GetMaterialAttribute()
已支持操作系统
所有