------------------------------------------------------------------ -- \author takeshita -- \date 2010/07/12 14:06:19 ------------------------------------------------------------------ -- start local id = ccGetScriptId(); -- IAシーン開始 function IA_SceneMain()local frame = ccIa_GetFrameCount(); -- メインアニメーション IA_createAnimation(frame, 0, 0, "data/ia/d09/d09_2\.xfbin", "d09_2020"); -- タイマー表示(位置指定) IA_setTimerEx(frame, 2, 60, 5, 640, 260); IA_setTimerLifeRecover(frame, 2, 5); IA_setTimerBonusCommand(frame, 2, false); -- 単発コマンド追加 IA_createCommand(frame, 2, 1, 565, 360, 60, "RIGHT"); IA_setCommandParam(frame, 2, 1, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 2, 1, true, false); IA_setCommandSuccessLine(frame, 2, 1, 100); -- 単発コマンド追加 IA_createCommand(frame, 7, 2, 715, 360, 55, "LEFT"); IA_setCommandParam(frame, 7, 2, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 7, 2, true, false); IA_setCommandSuccessLine(frame, 7, 2, 100); -- コマンド失敗による中断NG分岐 IA_setBranchId(frame, 80, 0); IA_checkFailure(frame, 80); -- タイマー表示(位置指定) IA_setTimerEx(frame, 95, 50, 4, 640, 260); IA_setTimerLifeRecover(frame, 95, 5); IA_setTimerBonusCommand(frame, 95, false); -- 単発コマンド追加 IA_createCommand(frame, 95, 5, 490, 360, 50, "CROSS"); IA_setCommandParam(frame, 95, 5, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 95, 5, true, false); IA_setCommandSuccessLine(frame, 95, 5, 100); -- 単発コマンド追加 IA_createCommand(frame, 97, 6, 640, 360, 48, "TRIANGLE"); IA_setCommandParam(frame, 97, 6, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 97, 6, true, false); IA_setCommandSuccessLine(frame, 97, 6, 100); -- 単発コマンド追加 IA_createCommand(frame, 99, 7, 790, 360, 46, "CIRCLE"); IA_setCommandParam(frame, 99, 7, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 99, 7, true, false); IA_setCommandSuccessLine(frame, 99, 7, 100); -- コマンド失敗による中断NG分岐 IA_setBranchId(frame, 168, 1); IA_checkFailure(frame, 168); -- 相手のパラメータ操作 IA_opParam(frame, 171, 10, 0); -- シーン切替時にパーティクルを消滅させる IA_particleAutoDel(frame); -- IAシーン終了 end -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------