跳至主要內容

setComplexAnimation

Mahiru小于 1 分钟

setComplexAnimation

设置复杂动画。

语句内容

填写复杂动画的名称。

目前 WebGAL 提供的复杂动画有:

  • universalSoftIn:通用透明度淡入
  • universalSoftOff:通用透明度淡出
setComplexAnimation:universalSoftIn -target=aaa -duration=1000;

参数

target

  • 字符串

动画作用目标。

可以填写的目标有:

  • fig-center:中间立绘
  • fig-left:左侧立绘
  • fig-right:右侧立绘
  • 自由立绘的 id
  • bg-main:背景
  • stage-main:舞台
setComplexAnimation:universalSoftIn -target=fig-center -duration=1000;

duration

  • 数字
  • 范围:0 到正无穷
  • 单位:毫秒

动画的持续时间。

作用于复杂动画的持续时间。

setComplexAnimation:universalSoftIn -target=fig-center -duration=1000;