AnimationAdaptorに戻る

AnimationAdaptor.play - 指定したアニメーションを1回だけ実行します。

書式

play(from,to,spd) 
    
from
アニメーションの最初のキャラクタパターン
to
アニメーションの最後のキャラクタパターン
spd
アニメーション速度( spdフレームにつき1パターン進む 。 1が最速 )

例1

 
extends SpriteChar;
anim=newAnimation();
anim.play($Pat_Bomb+3,$Pat_Bomb+6,3);
wait();

▲ このオブジェクトは、図1ように$Pat_Bomb+3から$Pat_Bomb+6までを順番に表示します。

bpats3.png