if (frame>30)
{jian_0017.translateY=30+sin(time*0.5);}
if (frame>35)
{jian_0018.translateY=30+sin(time*0.6);}
if (frame>40)
{jian_0019.translateY=30+sin(time*0.7);}
if (frame>45)
{jian_0020.translateY=30+sin(time*0.8);}
if (frame>32)
{jian_0017.translateY=30+sin(time*0.9);}
if (frame>37)
{jian_0018.translateY=30+sin(time*1);}
if (frame>42)
{jian_0019.translateY=30+sin(time*1.1);}
if (frame>47)
{jian_0020.translateY=30+sin(time*1.2);}
if (frame>27)
{jian_0021.translateY=30+sin(time*1.3);}
if (frame>33)
{jian_0022.translateY=30+sin(time*1.4);}
if (frame>36)
{jian_0023.translateY=30+sin(time*1.5);}
if (frame>42)
{jian_0024.translateY=30+sin(time*1.6);}
if (frame>25)
{jian_0025.translateY=30+sin(time*1.7);}
if (frame>14)
{jian_0026.translateY=30+sin(time*1.8);}
if (frame>19)
{jian_0027.translateY=30+sin(time*1.9);}
if (frame>23)
{jian_0028.translateY=30+sin(time*2);}
这个怎么用循环缩减一下啊
我之前写的是这个,报错
Int $num = 17;
string $name"jian_00"+"$num";
if (num<29)
{
$name.translateY=30+sin(time*2);
}
写了之后觉得$name.translateY=30+sin(time*2);这句怪怪的。
刚学mel不怎么会,求大神指点怎么写循环
{jian_0017.translateY=30+sin(time*0.5);}
if (frame>35)
{jian_0018.translateY=30+sin(time*0.6);}
if (frame>40)
{jian_0019.translateY=30+sin(time*0.7);}
if (frame>45)
{jian_0020.translateY=30+sin(time*0.8);}
if (frame>32)
{jian_0017.translateY=30+sin(time*0.9);}
if (frame>37)
{jian_0018.translateY=30+sin(time*1);}
if (frame>42)
{jian_0019.translateY=30+sin(time*1.1);}
if (frame>47)
{jian_0020.translateY=30+sin(time*1.2);}
if (frame>27)
{jian_0021.translateY=30+sin(time*1.3);}
if (frame>33)
{jian_0022.translateY=30+sin(time*1.4);}
if (frame>36)
{jian_0023.translateY=30+sin(time*1.5);}
if (frame>42)
{jian_0024.translateY=30+sin(time*1.6);}
if (frame>25)
{jian_0025.translateY=30+sin(time*1.7);}
if (frame>14)
{jian_0026.translateY=30+sin(time*1.8);}
if (frame>19)
{jian_0027.translateY=30+sin(time*1.9);}
if (frame>23)
{jian_0028.translateY=30+sin(time*2);}
这个怎么用循环缩减一下啊
我之前写的是这个,报错
Int $num = 17;
string $name"jian_00"+"$num";
if (num<29)
{
$name.translateY=30+sin(time*2);
}
写了之后觉得$name.translateY=30+sin(time*2);这句怪怪的。
刚学mel不怎么会,求大神指点怎么写循环