BGO (TeaScript)

来自SMBX 中文百科
TeaScript/BGO
跳转到导航 跳转到搜索

bgo(id).index,使用它可以调整背景物体的属性。

with bgo(param)
    'param 代表该物体背景的 PermID。
end with

参数

名称 类型 可读性 描述
x R&W 背景的横向坐标。
y R&W 背景的纵向坐标。
xsp R&W 表示背景的横向速度。
ysp R&W 表示背景的纵向速度。
forecolor R&W 表示背景的颜色,使用 rgba 方式设置颜色。
id R&W 表示背景的 ID。
permid R 表示背景的永久 ID。
extx R&W 背景所使用的拓展素材的横向位置。(例如设置为 0,则为拓展素材中的第一列)
exty R&W 背景所使用的拓展素材的纵向位置。(例如设置为 1,则为拓展素材中的第二行)
zpos R&W 表示背景的 z 坐标(即优先级,数值越小优先级越高)。
forecolor_r R&W 背景的 rgba 前景色中的红色通道的数值。
forecolor_g R&W 背景的 rgba 前景色中的绿色通道的数值。
forecolor_b R&W 背景的 rgba 前景色中的蓝色通道的数值。
forecolor_a R&W 背景的 rgba 前景色中的 alpha(即透明度) 通道的数值。