You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
目测是可以移植至 GameMaker: Studio,不过有两行代码倒是在 GM: S 中出错,应该是不支持这种写法
case GMU_ANIM_EXPO:
switch(_ease){
case GMU_ANIM_IN:
r=(t==0)?b : c*power(2,10*(t/d-1))+b; //'?' get an error in GM: S: Unexpected symbolbreak;
case GMU_ANIM_OUT:
r=(t==d)?b+c : c * (-power(2,-10*t/d)+1)+b; //'?' get an error in GM: S: Unexpected symbolbreak;
case GMU_ANIM_IN_OUT:
if (t==0){
r=b;
}
if(t==d){
r=b+c;
}
t/=d/2;
if (t<1){
r=c/2*power(2,10*(t-1))+b;
}else{
r=c/2*(-power(2,-10*--t)+2)+b;
}
break;
}
break;
The text was updated successfully, but these errors were encountered:
目测是可以移植至 GameMaker: Studio,不过有两行代码倒是在 GM: S 中出错,应该是不支持这种写法
The text was updated successfully, but these errors were encountered: