项目

一般

简介

Dlg play2dSprite » 历史记录 » 版本 4

tejie, 2025-11-19 11:19

1 2 yangdefeng
h4. _*%{color:green}play2dSprite%*_
2 1 yangdefeng
3
在OK框中播放2d特效
4
5 3 tejie
标签:命令定义^<play2dSprite:
6 1 yangdefeng
7
*格式*
8
|命令名		|参数1		|参数2		|参数3		|参数4		|参数5		|
9
|play2dSprite	|特效名称	|播放时长	|X坐标		|Y坐标		|缩放倍数	|
10
11
说明:
12 4 tejie
|参数1|特效资源名称,参见[[资源编辑器]]-->可调用特效资源-->筛选 *{color:red}非* 粒子特效|
13 3 tejie
|参数2|播放时长,单位毫秒,-1为循环播放|
14
|^.参数3|X坐标,需要配置缩放倍数时不可为空
15
 空或-1:中间位置|
16
|^.参数4|Y坐标,需要配置缩放倍数时不可为空
17
 空或-1:中间位置|
18 1 yangdefeng
|参数5|缩放倍数,不写默认为1倍|
19 4 tejie
20
| %{color:deeppink}该命令不支持播放,下图中筛选出来的特效:%
21
!http://112.124.36.36/redmine/attachments/download/1336/clipboard-202511151353-s7mpr.png!|
22 1 yangdefeng
23 2 yangdefeng
-
24
-
25
26
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
27 1 yangdefeng
28
bq. [<notextile>@</notextile>OK框播放特效]
29
#act
30
[[openMerchantBigDlg]] ok_di 0 0 0 1 0 0
31
#say
32
<notextile><</notextile>*{color:green}play2dSprite*:title_235:-1:200:200:4>