【脚本】跑马灯效果抽奖
模拟跑马灯的效果,适合做节日活动功能,里面内容可自行任意修改。
[@main]
#IF
#ACT
MOV N$默认坐标 0
MOV N$默认坐标X 0
MOV N$默认坐标Y 0
goto @展示面板
[@展示面板]
#IF
#SAY
<Img|ay=1|x=0.0|y=-60.0|width=580|height=410|show=4|loadDelay=1|reset=1|move=1|img=public/mianbg.png|bg=1|esc=1>
<Button|ay=1|x=545.0|y=-54.0|nimg=public/close1.png|link=@exit>
<Img|x=123.0|y=35.0|img=public/1900000651_3.png>
<ItemShow|x=127.0|y=36.0|width=70|height=70|itemid=1|itemcount=1|showtips=1|bgtype=1>
<Img|x=308.0|y=35.0|img=public/1900000651_3.png>
<ItemShow|x=309.0|y=36.0|width=70|height=70|itemid=1|itemcount=1|showtips=1|bgtype=1>
<Img|x=125.0|y=125.0|img=public/1900000651_3.png>
<ItemShow|x=127.0|y=127.0|width=70|height=70|itemid=1|itemcount=1|showtips=1|bgtype=1>
<Img|x=310.0|y=124.0|img=public/1900000651_3.png>
<ItemShow|x=314.0|y=125.0|width=70|height=70|itemid=1|itemcount=1|showtips=1|bgtype=1>
<Button|x=188.0|y=233.0|color=255|mimg=public/00000363.png|size=18|pimg=public/00000362.png|nimg=public/00000361.png|text=Button|link=@开始抽奖>
#IF
LARGE N$默认坐标 0
#SAY
<Effect|x=<$STR(N$默认坐标X)>|y=<$STR(N$默认坐标Y)>|scale=2|speed=1|effectid=4521|effecttype=0>
[@开始抽奖]
#IF
#ACT
INC N$默认坐标 1
DELAYGOTO 100 @转动转盘
[@转动转盘]
#IF
LARGE N$默认坐标 13
#ACT
CLEARDELAYGOTO @转动转盘
goto @展示面板
Break
#IF
#ACT
INC N$默认坐标 1
GETVALIDSTRSUPER 161*68|343*72|345*159|160*163|161*68|343*72|345*159|160*163|161*68|343*72|345*159|160*163|161*68 | S$坐标组
GETVALIDSTRSUPER <$STR(S$坐标组<$STR(N$默认坐标)>)> * S$坐标组变量
MOV N$默认坐标X <$STR(S$坐标组变量1)>
MOV N$默认坐标Y <$STR(S$坐标组变量2)>
goto @展示面板
DELAYGOTO 100 @转动转盘
为了大家能更好的学习996传奇引擎的技术,本站分享的部分内容来源于网络,无任何商业行为,如有侵权请立即告知!
THE END