------------------------------------------------------------------ -- \author takeshita -- \date 2010/07/12 11:42:33 ------------------------------------------------------------------ -- start local id = ccGetScriptId(); -- IAシーン開始 function IA_SceneMain()local frame = ccIa_GetFrameCount(); -- メインアニメーション IA_createAnimation(frame, 0, 0, "data/ia/d04/d04_2\.xfbin", "d04_2040"); -- シーン切替時にパーティクルを消滅させる IA_particleAutoDel(frame); -- 字幕表示 IA_setCaption(frame, 5, 40, "V_IA_d04_07"); -- 背景描画ON IA_enableDrawStage(frame, 0); -- 背景描画OFF IA_disableDrawStage(frame, 71); -- タイマー表示 IA_setTimer(frame, 71, 32, 0); IA_setTimerLifeRecover(frame, 71, 3); IA_setTimerBonusCommand(frame, 71, false); -- 単発コマンド追加 IA_createCommand(frame, 71, 0, 640, 480, 32, "LEFT"); IA_setCommandParam(frame, 71, 0, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 71, 0, true, false); IA_setCommandSuccessLine(frame, 71, 0, 100); -- コマンド失敗による中断NG分岐 IA_setBranchId(frame, 110, 0); IA_checkFailure(frame, 110); -- タイマー表示 IA_setTimer(frame, 115, 35, 0); IA_setTimerLifeRecover(frame, 115, 3); IA_setTimerBonusCommand(frame, 115, false); -- 単発コマンド追加 IA_createCommand(frame, 115, 1, 640, 360, 35, "UP"); IA_setCommandParam(frame, 115, 1, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 115, 1, true, false); IA_setCommandSuccessLine(frame, 115, 1, 100); -- コマンド失敗による中断 IA_checkFailure(frame, 151); -- タイマー表示 IA_setTimer(frame, 170, 45, 0); IA_setTimerLifeRecover(frame, 170, 3); IA_setTimerBonusCommand(frame, 170, false); -- 単発コマンド追加 IA_createCommand(frame, 170, 2, 640, 360, 45, "CIRCLE"); IA_setCommandParam(frame, 170, 2, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 170, 2, true, false); IA_setCommandSuccessLine(frame, 170, 2, 100); -- コマンド失敗による中断NG分岐 IA_setBranchId(frame, 219, 1); IA_checkFailure(frame, 219); -- タイマー表示(位置指定) IA_setTimerEx(frame, 253, 52, 5, 640, 380); IA_setTimerLifeRecover(frame, 253, 3); IA_setTimerBonusCommand(frame, 253, false); -- 単発コマンド追加 IA_createCommand(frame, 253, 4, 565, 480, 52, "TRIANGLE"); IA_setCommandParam(frame, 253, 4, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 253, 4, true, false); IA_setCommandSuccessLine(frame, 253, 4, 100); -- 単発コマンド追加 IA_createCommand(frame, 258, 5, 715, 480, 47, "CIRCLE"); IA_setCommandParam(frame, 258, 5, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 258, 5, true, false); IA_setCommandSuccessLine(frame, 258, 5, 100); -- コマンド失敗による中断NG分岐 IA_setBranchId(frame, 308, 2); IA_checkFailure(frame, 308); -- IAシーン終了 end -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------