<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>preloader es</name>
    <events>
        <include>global_variables es</include>
        <include>data_loader es</include>
        <event-block sid="496283363264324">
            <conditions>
                <condition id="-2" name="On start of layout" sid="157244622371919" type="System" />
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="704732110584697">
                    <conditions>
                        <condition id="-8" name="Compare two values" sid="393981581322758" type="System">
                            <param id="0" name="First value">find(LayoutName, &quot;Math&quot;)</param>
                            <param id="1" name="Comparison">5</param>
                            <param id="2" name="Second value">0</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-12" name="Set group active" sid="206717143454716" type="System">
                            <param id="0" name="Group name">&quot;loading animation math&quot;</param>
                            <param id="1" name="State">1</param>
                        </action>
                        <action id="-12" name="Set group active" sid="265306015773621" type="System">
                            <param id="0" name="Group name">&quot;loading animation english&quot;</param>
                            <param id="1" name="State">0</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="534097315771704">
                    <conditions>
                        <condition id="-22" name="Else" sid="886931739026371" type="System" />
                        <condition id="-8" name="Compare two values" sid="494426720734721" type="System">
                            <param id="0" name="First value">find(LayoutName, &quot;EN&quot;)</param>
                            <param id="1" name="Comparison">5</param>
                            <param id="2" name="Second value">0</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-12" name="Set group active" sid="782279227760333" type="System">
                            <param id="0" name="Group name">&quot;loading animation math&quot;</param>
                            <param id="1" name="State">0</param>
                        </action>
                        <action id="-12" name="Set group active" sid="828998541957266" type="System">
                            <param id="0" name="Group name">&quot;loading animation english&quot;</param>
                            <param id="1" name="State">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="447552897438418">
                    <conditions>
                        <condition id="-22" name="Else" sid="757280324891833" type="System" />
                    </conditions>
                    <actions>
                        <action id="-12" name="Set group active" sid="283549483697207" type="System">
                            <param id="0" name="Group name">&quot;loading animation math&quot;</param>
                            <param id="1" name="State">0</param>
                        </action>
                        <action id="-12" name="Set group active" sid="286490380574917" type="System">
                            <param id="0" name="Group name">&quot;loading animation english&quot;</param>
                            <param id="1" name="State">0</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="557904278204312">
                    <conditions>
                        <condition id="-18" name="Is in preview" sid="825579080390358" type="System" />
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="879276257796073" type="System">
                            <param id="0" name="Variable">previewMode</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="661664524122415">
                    <conditions>
                        <condition id="-22" name="Else" sid="838231422421223" type="System" />
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="945939589242504" type="System">
                            <param id="0" name="Variable">previewMode</param>
                            <param id="1" name="Value">0</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="530571466786062">
                    <conditions />
                    <actions>
                        <action id="0" name="Add key" sid="895384289065028" type="dictData">
                            <param id="0" name="Key">&quot;loader complete&quot;</param>
                            <param id="1" name="Value">0</param>
                        </action>
                        <action id="0" name="Add key" sid="669533890337224" type="dictData">
                            <param id="0" name="Key">&quot;loading percentage&quot;</param>
                            <param id="1" name="Value">0</param>
                        </action>
                        <action id="0" name="Add key" sid="174376638851208" type="dictData">
                            <param id="0" name="Key">&quot;animation complete&quot;</param>
                            <param id="1" name="Value">1</param>
                        </action>
                        <action id="-5" name="Set width" sid="753873305326870" type="loadingBar">
                            <param id="0" name="Width">0</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="288420983768116">
            <conditions>
                <condition id="-25" name="On loader layout complete" sid="225253981672667" type="System" />
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="909970418832810">
                    <conditions>
                        <condition id="-20" name="Is on mobile device" sid="829609772159803" type="System" />
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="324769788265756" type="System">
                            <param id="0" name="Variable">deviceType</param>
                            <param id="1" name="Value">&quot;mobile&quot;</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="869000042871035">
                    <conditions />
                    <actions>
                        <action id="1" name="Set key" sid="615969681533877" type="dictData">
                            <param id="0" name="Key">&quot;loader complete&quot;</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="873859742879340">
            <conditions>
                <condition id="-6" name="Every X seconds" sid="153592684550979" type="System">
                    <param id="0" name="Interval (seconds)">dt</param>
                </condition>
            </conditions>
            <actions>
                <action id="-5" name="Set width" sid="808588895837082" type="loadingBar">
                    <param id="0" name="Width">round(loadingprogress * LayoutWidth)</param>
                </action>
            </actions>
            <sub-events>
                <comment>If do not need to load data ,please remove data_loader event sheet.</comment>
                <event-block sid="525361834726804">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="278704939099598" type="System">
                            <param id="0" name="Variable">dataCount</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">0</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="105144500773436" type="Function">
                            <param id="0" name="Name">&quot;loading without csv&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="564663428016087">
                    <conditions>
                        <condition id="-22" name="Else" sid="683279270011212" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="251669884709252" type="Function">
                            <param id="0" name="Name">&quot;loading with csv&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="248069645738315">
                    <conditions />
                    <actions />
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="185964692662412">
            <conditions>
                <condition id="0" name="On function" sid="638652519178714" type="Function">
                    <param id="0" name="Name">&quot;loading with csv&quot;</param>
                </condition>
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="547956671525055">
                    <conditions>
                        <condition id="-8" name="Compare two values" sid="157381143124133" type="System">
                            <param id="0" name="First value">ChopSuey.GetImageLoadTotal</param>
                            <param id="1" name="Comparison">1</param>
                            <param id="2" name="Second value">0</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="1" name="Set key" sid="964451250417386" type="dictData">
                            <param id="0" name="Key">&quot;loading percentage&quot;</param>
                            <param id="1" name="Value">loadingprogress * 0.6 + (ChopSuey.GetImageLoadComplete / ChopSuey.GetImageLoadTotal) * 0.4</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="136576105685688">
                    <conditions>
                        <condition id="-22" name="Else" sid="809956186932848" type="System" />
                    </conditions>
                    <actions>
                        <action id="1" name="Set key" sid="492882490469502" type="dictData">
                            <param id="0" name="Key">&quot;loading percentage&quot;</param>
                            <param id="1" name="Value">loadingprogress * 0.8</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="131174159548210">
                    <conditions>
                        <condition id="0" name="Compare value" sid="545062255138388" type="dictData">
                            <param id="0" name="Key">&quot;loader complete&quot;</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">1</param>
                        </condition>
                        <condition id="0" name="Compare value" sid="282897253675320" type="dictData">
                            <param id="0" name="Key">&quot;animation complete&quot;</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">1</param>
                        </condition>
                        <condition id="-8" name="Compare two values" sid="674182357538681" type="System">
                            <param id="0" name="First value">ChopSuey.GetImageLoadTotal</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Second value">ChopSuey.GetImageLoadComplete</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <comment>If do not need to load images ,please enabled line System dataCount &lt;= 1</comment>
                        <event-block any="1" sid="318002719015081">
                            <conditions>
                                <condition id="-8" name="Compare two values" sid="528162683367377" type="System">
                                    <param id="0" name="First value">ChopSuey.GetImageLoadTotal</param>
                                    <param id="1" name="Comparison">1</param>
                                    <param id="2" name="Second value">0</param>
                                </condition>
                                <condition disabled="1" id="-14" name="Compare variable" sid="550185339396758" type="System">
                                    <param id="0" name="Variable">dataCount</param>
                                    <param id="1" name="Comparison">3</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Call function" sid="222369256649180" type="Function">
                                    <param id="0" name="Name">&quot;go to game&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="688252365969974">
            <conditions>
                <condition id="0" name="On function" sid="573328682457034" type="Function">
                    <param id="0" name="Name">&quot;loading without csv&quot;</param>
                </condition>
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="534142117011593">
                    <conditions />
                    <actions>
                        <action id="1" name="Set key" sid="625659638795961" type="dictData">
                            <param id="0" name="Key">&quot;loading percentage&quot;</param>
                            <param id="1" name="Value">loadingprogress</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="227638480447665">
                    <conditions>
                        <condition id="0" name="Compare value" sid="539667269083785" type="dictData">
                            <param id="0" name="Key">&quot;loader complete&quot;</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">1</param>
                        </condition>
                        <condition id="0" name="Compare value" sid="347678374284310" type="dictData">
                            <param id="0" name="Key">&quot;animation complete&quot;</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">1</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="702710030294714" type="Function">
                            <param id="0" name="Name">&quot;go to game&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="788324246513150">
            <conditions>
                <condition id="0" name="On function" sid="866119267744269" type="Function">
                    <param id="0" name="Name">&quot;go to game&quot;</param>
                </condition>
            </conditions>
            <actions>
                <action id="3" name="Clear" sid="532454076337362" type="dictData" />
                <action id="-2" name="Go to layout" sid="473821998254460" type="System">
                    <param id="0" name="Layout">menu</param>
                </action>
            </actions>
        </event-block>
        <event-group description="This animation for subject math" sid="387287982580242" title="loading animation math">
            <sub-events>
                <event-block sid="352007482075383">
                    <conditions>
                        <condition id="-2" name="On start of layout" sid="197490358740304" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="565498719416136" type="Function">
                            <param id="0" name="Name">&quot;loading ball animation&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="102864891269841">
                    <conditions>
                        <condition id="0" name="On function" sid="748403275396310" type="Function">
                            <param id="0" name="Name">&quot;loading animation random&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="1" name="Set return value" sid="630512078425797" type="Function">
                            <param id="0" name="Value">floor(random(-20, 20))</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="550125636177534">
                    <conditions>
                        <condition id="0" name="On function" sid="987395369213180" type="Function">
                            <param id="0" name="Name">&quot;loading ball animation&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="827866844486003">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="937849046149860" type="Function">
                                    <param id="0" name="Name">&quot;loading ball1 aniamtion&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="473694978834145" type="Function">
                                    <param id="0" name="Name">&quot;loading ball2 aniamtion&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="729271173209815" type="Function">
                                    <param id="0" name="Name">&quot;loading ball3 aniamtion&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="112399978725038" type="Function">
                                    <param id="0" name="Name">&quot;loading ball4 aniamtion&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="512952832084525">
                            <conditions>
                                <condition id="-11" name="For Each" sid="885627475471396" type="System">
                                    <param id="0" name="Object">loading_ball5</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Set value" sid="900883693921532" type="loading_ball5">
                                    <param id="0" name="Instance variable">initX</param>
                                    <param id="1" name="Value">Self.X</param>
                                </action>
                                <action id="-10" name="Set value" sid="113379981967346" type="loading_ball5">
                                    <param id="0" name="Instance variable">initY</param>
                                    <param id="1" name="Value">Self.Y</param>
                                </action>
                                <action id="0" name="Call function" sid="670713489798450" type="Function">
                                    <param id="0" name="Name">&quot;loading ball5 aniamtion&quot;</param>
                                    <param id="1" name="Parameter {n}">loading_ball5.UID</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment></comment>
                <event-block sid="962521651814133">
                    <conditions>
                        <condition id="0" name="On function" sid="593673951066960" type="Function">
                            <param id="0" name="Name">&quot;loading ball1 aniamtion&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action behavior="LiteTween" id="3" name="Set target" sid="445284117235933" type="loading_ball">
                            <param id="0" name="Target is">0</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initX</param>
                        </action>
                        <action behavior="LiteTween" id="3" name="Set target" sid="674583701666491" type="loading_ball">
                            <param id="0" name="Target is">1</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initY</param>
                        </action>
                        <action behavior="LiteTween" id="10" name="Start" sid="144076250094349" type="loading_ball">
                            <param id="0" name="Start Mode">0</param>
                            <param id="1" name="Force use current">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="442985404442373">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="494160860296105" type="loading_ball" />
                    </conditions>
                    <actions>
                        <action id="-16" name="Wait" sid="341754354792913" type="System">
                            <param id="0" name="Seconds">random(0, 6)</param>
                        </action>
                        <action id="0" name="Call function" sid="866819530361579" type="Function">
                            <param id="0" name="Name">&quot;loading ball1 aniamtion&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <comment></comment>
                <event-block sid="328624458533588">
                    <conditions>
                        <condition id="0" name="On function" sid="874622399824643" type="Function">
                            <param id="0" name="Name">&quot;loading ball2 aniamtion&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action behavior="LiteTween" id="3" name="Set target" sid="267777259607616" type="loading_ball2">
                            <param id="0" name="Target is">0</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initX</param>
                        </action>
                        <action behavior="LiteTween" id="3" name="Set target" sid="829514549468001" type="loading_ball2">
                            <param id="0" name="Target is">1</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initY</param>
                        </action>
                        <action behavior="LiteTween" id="10" name="Start" sid="724328883249455" type="loading_ball2">
                            <param id="0" name="Start Mode">0</param>
                            <param id="1" name="Force use current">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="773096754435309">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="732936592998134" type="loading_ball2" />
                    </conditions>
                    <actions>
                        <action id="-16" name="Wait" sid="769440132363016" type="System">
                            <param id="0" name="Seconds">random(0, 6)</param>
                        </action>
                        <action id="0" name="Call function" sid="618810032589375" type="Function">
                            <param id="0" name="Name">&quot;loading ball2 aniamtion&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <comment></comment>
                <event-block sid="180018258247770">
                    <conditions>
                        <condition id="0" name="On function" sid="793412963865721" type="Function">
                            <param id="0" name="Name">&quot;loading ball3 aniamtion&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action behavior="LiteTween" id="3" name="Set target" sid="456186448462119" type="loading_ball3">
                            <param id="0" name="Target is">0</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initX</param>
                        </action>
                        <action behavior="LiteTween" id="3" name="Set target" sid="234101067997120" type="loading_ball3">
                            <param id="0" name="Target is">1</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initY</param>
                        </action>
                        <action behavior="LiteTween" id="10" name="Start" sid="135848916407105" type="loading_ball3">
                            <param id="0" name="Start Mode">0</param>
                            <param id="1" name="Force use current">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="619290441162712">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="185039975473682" type="loading_ball3" />
                    </conditions>
                    <actions>
                        <action id="-16" name="Wait" sid="647517313315455" type="System">
                            <param id="0" name="Seconds">random(0, 6)</param>
                        </action>
                        <action id="0" name="Call function" sid="166593368363722" type="Function">
                            <param id="0" name="Name">&quot;loading ball3 aniamtion&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <comment></comment>
                <event-block sid="599466403314432">
                    <conditions>
                        <condition id="0" name="On function" sid="763714050153428" type="Function">
                            <param id="0" name="Name">&quot;loading ball4 aniamtion&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action behavior="LiteTween" id="3" name="Set target" sid="724085572607927" type="loading_ball4">
                            <param id="0" name="Target is">0</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initX</param>
                        </action>
                        <action behavior="LiteTween" id="3" name="Set target" sid="272119717044496" type="loading_ball4">
                            <param id="0" name="Target is">1</param>
                            <param id="1" name="Relativity">0</param>
                            <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initY</param>
                        </action>
                        <action behavior="LiteTween" id="10" name="Start" sid="913559810515227" type="loading_ball4">
                            <param id="0" name="Start Mode">0</param>
                            <param id="1" name="Force use current">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="368456283548072">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="892549992813293" type="loading_ball4" />
                    </conditions>
                    <actions>
                        <action id="-16" name="Wait" sid="765576535845480" type="System">
                            <param id="0" name="Seconds">random(0, 6)</param>
                        </action>
                        <action id="0" name="Call function" sid="569276938555294" type="Function">
                            <param id="0" name="Name">&quot;loading ball4 aniamtion&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <comment></comment>
                <event-block sid="662163079659858">
                    <conditions>
                        <condition id="0" name="On function" sid="591316115078312" type="Function">
                            <param id="0" name="Name">&quot;loading ball5 aniamtion&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="993826252138472">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="975157429277915" type="loading_ball5">
                                    <param id="0" name="Unique ID">Function.Param(0)</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action behavior="LiteTween" id="3" name="Set target" sid="641960045172921" type="loading_ball5">
                                    <param id="0" name="Target is">0</param>
                                    <param id="1" name="Relativity">0</param>
                                    <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initX</param>
                                </action>
                                <action behavior="LiteTween" id="3" name="Set target" sid="137122932455517" type="loading_ball5">
                                    <param id="0" name="Target is">1</param>
                                    <param id="1" name="Relativity">0</param>
                                    <param id="2" name="Value">Function.Call(&quot;loading animation random&quot;) + Self.initY</param>
                                </action>
                                <action behavior="LiteTween" id="10" name="Start" sid="667042103496610" type="loading_ball5">
                                    <param id="0" name="Start Mode">0</param>
                                    <param id="1" name="Force use current">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="429778732735133">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="769877505710240" type="loading_ball5" />
                    </conditions>
                    <actions>
                        <action id="-16" name="Wait" sid="372619241073000" type="System">
                            <param id="0" name="Seconds">random(0, 6)</param>
                        </action>
                        <action id="0" name="Call function" sid="943440927399522" type="Function">
                            <param id="0" name="Name">&quot;loading ball5 aniamtion&quot;</param>
                            <param id="1" name="Parameter {n}">loading_ball5.UID</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="320571492097977">
                    <conditions>
                        <condition id="-18" name="On created" sid="463829656130838" type="loading_ball5" />
                    </conditions>
                    <actions>
                        <action id="2" name="Stop" sid="139103215969623" type="loading_ball5" />
                        <action id="5" name="Set frame" sid="511811004236759" type="loading_ball5">
                            <param id="0" name="Frame number">floor(random(0, Self.AnimationFrameCount))</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="This animatino for subject enlish" inactive="1" sid="539685491240857" title="loading animation english">
            <sub-events>
                <event-block sid="663400618047897">
                    <conditions>
                        <condition id="-2" name="On start of layout" sid="652278927804226" type="System" />
                    </conditions>
                    <actions>
                        <action behavior="Pin" id="0" name="Pin to object" sid="462007782336504" type="loaderFire">
                            <param id="0" name="Pin to">loaderRocket</param>
                            <param id="1" name="Mode">0</param>
                        </action>
                        <action id="2" name="Stop" sid="520656610308639" type="loaderFire" />
                        <action behavior="Pin" id="0" name="Pin to object" sid="342309568915069" type="loaderRocketDoor">
                            <param id="0" name="Pin to">loaderRocket</param>
                            <param id="1" name="Mode">0</param>
                        </action>
                        <action id="0" name="Add key" sid="551036233502906" type="dictData">
                            <param id="0" name="Key">&quot;animation complete&quot;</param>
                            <param id="1" name="Value">0</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="871501892434159">
                    <conditions>
                        <condition id="-1" name="Every tick" sid="915551633261645" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="111092347665375" type="Function">
                            <param id="0" name="Name">&quot;loader monster position update&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                        <action id="0" name="Call function" sid="924556950695014" type="Function">
                            <param id="0" name="Name">&quot;loader rocket screen update&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-group description="" sid="365961462881926" title="loader monster event">
                    <sub-events>
                        <event-block sid="339646573515697">
                            <conditions>
                                <condition id="-2" name="On start of layout" sid="517148791788645" type="System" />
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="908244418327600">
                                    <conditions />
                                    <actions>
                                        <action id="0" name="Call function" sid="638974815095015" type="Function">
                                            <param id="0" name="Name">&quot;loader monster init&quot;</param>
                                            <param id="1" name="Parameter {n}"></param>
                                        </action>
                                        <action id="0" name="Call function" sid="976783858883910" type="Function">
                                            <param id="0" name="Name">&quot;loader monster init position&quot;</param>
                                            <param id="1" name="Parameter {n}"></param>
                                        </action>
                                        <action id="-15" name="Set visible" sid="300563717043787" type="loaderJp">
                                            <param id="0" name="Visibility">0</param>
                                        </action>
                                        <action id="-15" name="Set visible" sid="599836580354923" type="loaderEndPoint">
                                            <param id="0" name="Visibility">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="779961162677451">
                                    <conditions />
                                    <actions>
                                        <action id="-16" name="Wait" sid="687474563202348" type="System">
                                            <param id="0" name="Seconds">0.6</param>
                                        </action>
                                        <action id="-10" name="Set value" sid="701835699187395" type="LoaderMonster">
                                            <param id="0" name="Instance variable">state</param>
                                            <param id="1" name="Value">1</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="620726099897425">
                            <conditions>
                                <condition id="0" name="On function" sid="782611969458429" type="Function">
                                    <param id="0" name="Name">&quot;loader monster init&quot;</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-15" name="Set visible" sid="569654378574222" type="LoaderMonster">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                            </actions>
                            <sub-events>
                                <variable constant="0" name="posX" sid="741242904947327" static="0" type="number">0</variable>
                                <variable constant="0" name="posY" sid="124076095481350" static="0" type="number">0</variable>
                                <event-block sid="761523594274011">
                                    <conditions />
                                    <actions>
                                        <action id="-9" name="Set value" sid="261369657973563" type="System">
                                            <param id="0" name="Variable">posX</param>
                                            <param id="1" name="Value">-1000</param>
                                        </action>
                                        <action id="-9" name="Set value" sid="337156292597221" type="System">
                                            <param id="0" name="Variable">posY</param>
                                            <param id="1" name="Value">-1000</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="790456470897670">
                                    <conditions>
                                        <condition id="-11" name="For Each" sid="273022091875803" type="System">
                                            <param id="0" name="Object">LoaderMonster</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="619504139908197">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="932841237788348" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="242405687193521" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster1.Width</param>
                                                    <param id="1" name="Height">loaderMonster1.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="447511630423275" type="loaderMonster1">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="605274599486113" type="loaderMonster1">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="477684942930249">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="317236084751853" type="System" />
                                                <condition id="-8" name="Compare two values" sid="557593245028347" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">1</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="757600899556142" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster2.Width</param>
                                                    <param id="1" name="Height">loaderMonster2.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="853013720567455" type="loaderMonster2">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="667212095311513" type="loaderMonster2">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="169409503331752">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="454422562206907" type="System" />
                                                <condition id="-8" name="Compare two values" sid="753211812529270" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">2</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="708949580515671" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster3.Width</param>
                                                    <param id="1" name="Height">loaderMonster3.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="881349283767286" type="loaderMonster3">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="550562169002260" type="loaderMonster3">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="235690510786053">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="130043315542529" type="System" />
                                                <condition id="-8" name="Compare two values" sid="443465088422631" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">3</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="420477139473227" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster4.Width</param>
                                                    <param id="1" name="Height">loaderMonster4.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="247293503791499" type="loaderMonster4">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="226502320700452" type="loaderMonster4">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="607732725821507">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="323035704334585" type="System" />
                                                <condition id="-8" name="Compare two values" sid="234110160469781" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">4</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="338825895512899" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster5.Width</param>
                                                    <param id="1" name="Height">loaderMonster5.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="435851556866111" type="loaderMonster5">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="945423161708105" type="loaderMonster5">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="722613343607869">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="188324484196118" type="System" />
                                                <condition id="-8" name="Compare two values" sid="881963577679478" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">5</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="380083558503450" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster6.Width</param>
                                                    <param id="1" name="Height">loaderMonster6.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="330338859615601" type="loaderMonster6">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="168707142025928" type="loaderMonster6">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="425040203871069">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="331285321827908" type="System" />
                                                <condition id="-8" name="Compare two values" sid="797615630217628" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">6</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="191770079757588" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster7.Width</param>
                                                    <param id="1" name="Height">loaderMonster7.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="795354121254076" type="loaderMonster7">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="579123487979865" type="loaderMonster7">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="167058067632045">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="204177925198479" type="System" />
                                                <condition id="-8" name="Compare two values" sid="666523219375375" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-7" name="Set size" sid="993247878897444" type="LoaderMonster">
                                                    <param id="0" name="Width">loaderMonster8.Width</param>
                                                    <param id="1" name="Height">loaderMonster8.Height</param>
                                                </action>
                                                <action id="-3" name="Set position" sid="425330866155067" type="loaderMonster8">
                                                    <param id="0" name="X">LoaderMonster.X</param>
                                                    <param id="1" name="Y">LoaderMonster.Y</param>
                                                </action>
                                                <action behavior="Pin" id="0" name="Pin to object" sid="892776092506901" type="loaderMonster8">
                                                    <param id="0" name="Pin to">LoaderMonster</param>
                                                    <param id="1" name="Mode">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="362935387664280">
                                            <conditions />
                                            <actions />
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="579454081381482">
                            <conditions>
                                <condition id="0" name="On function" sid="939428394066392" type="Function">
                                    <param id="0" name="Name">&quot;loader monster position update&quot;</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="164668483055571">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="933935266567402" type="LoaderMonster">
                                            <param id="0" name="Instance variable">state</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">1</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Platform" id="7" name="Simulate control" sid="869517657503445" type="LoaderMonster">
                                            <param id="0" name="Control">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="773417230223295">
                            <conditions>
                                <condition id="0" name="On function" sid="608519948461693" type="Function">
                                    <param id="0" name="Name">&quot;loader monster animation reset&quot;</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <variable constant="0" name="isAva" sid="418836809473113" static="0" type="number">1</variable>
                                <event-block sid="408628760839042">
                                    <conditions>
                                        <condition id="-11" name="For Each" sid="145045737926658" type="System">
                                            <param id="0" name="Object">LoaderMonster</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="984096304871529">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="501676378664779" type="LoaderMonster">
                                                    <param id="0" name="Instance variable">state</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-9" name="Set value" sid="892938923511086" type="System">
                                                    <param id="0" name="Variable">isAva</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="915177570340694">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="232258827122304" type="System">
                                            <param id="0" name="Variable">isAva</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">1</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-16" name="Wait" sid="907761616553383" type="System">
                                            <param id="0" name="Seconds">0.5</param>
                                        </action>
                                        <action id="0" name="Call function" sid="550387081194122" type="Function">
                                            <param id="0" name="Name">&quot;loader monster init position&quot;</param>
                                            <param id="1" name="Parameter {n}"></param>
                                        </action>
                                        <action id="-16" name="Wait" sid="132157080078495" type="System">
                                            <param id="0" name="Seconds">0.5</param>
                                        </action>
                                        <action id="-10" name="Set value" sid="934946743361520" type="LoaderMonster">
                                            <param id="0" name="Instance variable">state</param>
                                            <param id="1" name="Value">1</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="520065158743693">
                            <conditions>
                                <condition id="0" name="On function" sid="482327946411901" type="Function">
                                    <param id="0" name="Name">&quot;loader check complete&quot;</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="255037973953033">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="375127069209810" type="System">
                                            <param id="0" name="First value">loadingprogress</param>
                                            <param id="1" name="Comparison">2</param>
                                            <param id="2" name="Second value">1</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="120503469620977" type="Function">
                                            <param id="0" name="Name">&quot;loader monster animation reset&quot;</param>
                                            <param id="1" name="Parameter {n}"></param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="704603947501267">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="247379037308820" type="System" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="168404275205862">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="454891160558365" type="System">
                                                    <param id="0" name="First value">time</param>
                                                    <param id="1" name="Comparison">5</param>
                                                    <param id="2" name="Second value">5</param>
                                                </condition>
                                                <condition id="0" name="Compare value" sid="185689309161311" type="dictData">
                                                    <param id="0" name="Key">&quot;loading percentage&quot;</param>
                                                    <param id="1" name="Comparison">5</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="897155310860644" type="Function">
                                                    <param id="0" name="Name">&quot;loader rocket shoot&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                                <action id="0" name="Call function" sid="738906733624020" type="Function">
                                                    <param id="0" name="Name">&quot;loader rocket viewpoint move&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="409729715028321">
                                            <conditions>
                                                <condition id="-22" name="Else" sid="215467677286977" type="System" />
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="220646047222008" type="Function">
                                                    <param id="0" name="Name">&quot;loader monster animation reset&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-group description="" sid="904733544293001" title="loader monster position">
                            <sub-events>
                                <event-block sid="208683903595275">
                                    <conditions>
                                        <condition id="0" name="On function" sid="520771816538484" type="Function">
                                            <param id="0" name="Name">&quot;loader monster init position&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="584235351447571">
                                            <conditions>
                                                <condition id="-11" name="For Each" sid="249389045900075" type="System">
                                                    <param id="0" name="Object">LoaderMonster</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="296760059342814" type="Function">
                                                    <param id="0" name="Name">&quot;loader monster set position&quot;</param>
                                                    <param id="1" name="Parameter {n}">LoaderMonster.UID</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="477771408347283">
                                    <conditions>
                                        <condition id="0" name="On function" sid="994967270320690" type="Function">
                                            <param id="0" name="Name">&quot;loader monster set position&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <variable constant="0" name="width" sid="458591840439774" static="0" type="number">0</variable>
                                        <variable constant="0" name="height" sid="462779854784481" static="0" type="number">0</variable>
                                        <variable constant="0" name="halfWidth" sid="334263651868872" static="0" type="number">0</variable>
                                        <variable constant="0" name="halfHeight" sid="309695426943965" static="0" type="number">0</variable>
                                        <variable constant="0" name="uid" sid="391762204727120" static="0" type="number">0</variable>
                                        <variable constant="0" name="lastX" sid="622238326189269" static="0" type="number">0</variable>
                                        <variable constant="0" name="lastWidth" sid="969208019234511" static="0" type="number">0</variable>
                                        <variable constant="0" name="posX" sid="612382850819442" static="0" type="number">0</variable>
                                        <variable constant="0" name="posY" sid="588884344016876" static="0" type="number">0</variable>
                                        <event-block sid="112702724373810">
                                            <conditions />
                                            <actions>
                                                <action id="-9" name="Set value" sid="567941730213365" type="System">
                                                    <param id="0" name="Variable">uid</param>
                                                    <param id="1" name="Value">Function.Param(0)</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="189395448610991">
                                            <conditions>
                                                <condition id="-14" name="Pick by unique ID" sid="148523586437123" type="LoaderMonster">
                                                    <param id="0" name="Unique ID">uid</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action behavior="Platform" id="11" name="Set enabled" sid="467107902884102" type="LoaderMonster">
                                                    <param id="0" name="State">1</param>
                                                </action>
                                            </actions>
                                            <sub-events>
                                                <event-block sid="279874034832164">
                                                    <conditions />
                                                    <actions>
                                                        <action id="-9" name="Set value" sid="552382753787057" type="System">
                                                            <param id="0" name="Variable">width</param>
                                                            <param id="1" name="Value">LoaderMonster.Width</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="117428444555817" type="System">
                                                            <param id="0" name="Variable">height</param>
                                                            <param id="1" name="Value">LoaderMonster.Height</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="840736348057119" type="System">
                                                            <param id="0" name="Variable">halfWidth</param>
                                                            <param id="1" name="Value">floor(width / 2)</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="655040152284584" type="System">
                                                            <param id="0" name="Variable">halfHeight</param>
                                                            <param id="1" name="Value">floor(height / 2)</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <event-block sid="206475762247935">
                                                    <conditions>
                                                        <condition id="-8" name="Compare two values" sid="373956942753515" type="System">
                                                            <param id="0" name="First value">LoaderMonster.IID</param>
                                                            <param id="1" name="Comparison">0</param>
                                                            <param id="2" name="Second value">0</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-3" name="Set position" sid="646881788464696" type="LoaderMonster">
                                                            <param id="0" name="X">loaderStartPoint.X + width</param>
                                                            <param id="1" name="Y">loaderStartPoint.Y - height</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <event-block sid="620105685873121">
                                                    <conditions>
                                                        <condition id="-22" name="Else" sid="599312646364079" type="System" />
                                                    </conditions>
                                                    <actions>
                                                        <action id="-9" name="Set value" sid="518938712363978" type="System">
                                                            <param id="0" name="Variable">lastX</param>
                                                            <param id="1" name="Value">LoaderMonster(LoaderMonster.IID - 1).X</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="983405720966253" type="System">
                                                            <param id="0" name="Variable">lastWidth</param>
                                                            <param id="1" name="Value">floor(LoaderMonster(LoaderMonster.IID - 1).Width / 2)</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="138557466163032" type="System">
                                                            <param id="0" name="Variable">posX</param>
                                                            <param id="1" name="Value">lastX + lastWidth + halfWidth</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="458414131926742" type="System">
                                                            <param id="0" name="Variable">posY</param>
                                                            <param id="1" name="Value">loaderStartPoint.Y - height</param>
                                                        </action>
                                                        <action id="-3" name="Set position" sid="941344769966579" type="LoaderMonster">
                                                            <param id="0" name="X">posX</param>
                                                            <param id="1" name="Y">posY</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-group>
                        <event-group description="" sid="417683988956952" title="loader monster collision">
                            <sub-events>
                                <event-block sid="129845351939484">
                                    <conditions>
                                        <condition id="0" name="On collision with another object" sid="791540231443160" type="LoaderMonster">
                                            <param id="0" name="Object">loaderJp</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Platform" id="7" name="Simulate control" sid="699247466813793" type="LoaderMonster">
                                            <param id="0" name="Control">2</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="322555766358526">
                                    <conditions>
                                        <condition id="0" name="On collision with another object" sid="327824470323847" type="LoaderMonster">
                                            <param id="0" name="Object">loaderEndPoint</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-10" name="Set value" sid="673074540652040" type="LoaderMonster">
                                            <param id="0" name="Instance variable">state</param>
                                            <param id="1" name="Value">0</param>
                                        </action>
                                        <action id="-3" name="Set position" sid="170182540649278" type="LoaderMonster">
                                            <param id="0" name="X">loaderStartPoint.X + Self.Width</param>
                                            <param id="1" name="Y">loaderStartPoint.Y - Self.Height</param>
                                        </action>
                                    </actions>
                                    <sub-events>
                                        <event-block sid="836938006985573">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="527395158914202" type="System">
                                                    <param id="0" name="First value">LoaderMonster.IID</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="157241693869083" type="Function">
                                                    <param id="0" name="Name">&quot;loader check complete&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-group>
                        <event-block sid="413249976724829">
                            <conditions />
                            <actions />
                        </event-block>
                    </sub-events>
                </event-group>
                <event-group description="" sid="973377189549112" title="loader rocket">
                    <sub-events>
                        <event-block sid="963105705314226">
                            <conditions>
                                <condition id="-2" name="On start of layout" sid="772417196499144" type="System" />
                            </conditions>
                            <actions>
                                <action id="-15" name="Set visible" sid="715289819788642" type="loaderRocketPoint">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="886027972201381">
                            <conditions>
                                <condition id="0" name="On function" sid="176541400908797" type="Function">
                                    <param id="0" name="Name">&quot;loader rocket shoot&quot;</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action behavior="LiteTween" id="3" name="Set target" sid="542156809191130" type="loaderRocket">
                                    <param id="0" name="Target is">0</param>
                                    <param id="1" name="Relativity">0</param>
                                    <param id="2" name="Value">Self.X</param>
                                </action>
                                <action behavior="LiteTween" id="3" name="Set target" sid="558276343885278" type="loaderRocket">
                                    <param id="0" name="Target is">1</param>
                                    <param id="1" name="Relativity">0</param>
                                    <param id="2" name="Value">0 - LayoutHeight - Self.Height - 600</param>
                                </action>
                                <action behavior="LiteTween" id="10" name="Start" sid="859915142186858" type="loaderRocket">
                                    <param id="0" name="Start Mode">0</param>
                                    <param id="1" name="Force use current">1</param>
                                </action>
                                <action id="3" name="Start" sid="312966237310364" type="loaderFire">
                                    <param id="0" name="From">0</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="340836101109961">
                            <conditions>
                                <condition id="0" name="On function" sid="687247378386981" type="Function">
                                    <param id="0" name="Name">&quot;loader rocket viewpoint move&quot;</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-16" name="Wait" sid="187547248843617" type="System">
                                    <param id="0" name="Seconds">0.5</param>
                                </action>
                                <action behavior="CustomMovement" id="2" name="Set speed" sid="984944997539173" type="loaderRocketPoint">
                                    <param id="0" name="Which">2</param>
                                    <param id="1" name="Speed">-330</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="316689053881895">
                            <conditions>
                                <condition id="0" name="On function" sid="568994466155462" type="Function">
                                    <param id="0" name="Name">&quot;loader rocket screen update&quot;</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-6" name="Scroll to Y" sid="973978792460241" type="System">
                                    <param id="0" name="Y">loaderRocketPoint.Y</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="575377542813532">
                            <conditions>
                                <condition behavior="LiteTween" id="4" name="On tween end" sid="957262192816658" type="loaderRocket" />
                            </conditions>
                            <actions>
                                <action id="1" name="Set key" sid="763536185079582" type="dictData">
                                    <param id="0" name="Key">&quot;animation complete&quot;</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="592618088493007">
                            <conditions />
                            <actions />
                        </event-block>
                    </sub-events>
                </event-group>
                <event-group description="" sid="355991222230386" title="loader cloud">
                    <sub-events>
                        <event-block sid="339442588329919">
                            <conditions>
                                <condition id="-2" name="On start of layout" sid="291688615526389" type="System" />
                            </conditions>
                            <actions>
                                <action id="-9" name="Destroy" sid="644907586648707" type="loaderCloud" />
                                <action id="0" name="Call function" sid="750841829304472" type="Function">
                                    <param id="0" name="Name">&quot;cloud create&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="142592284522357">
                                    <conditions>
                                        <condition id="-18" name="Is in preview" sid="591649863952104" type="System" />
                                    </conditions>
                                    <actions>
                                        <action id="-9" name="Set value" sid="539628427949149" type="System">
                                            <param id="0" name="Variable">imgFolder</param>
                                            <param id="1" name="Value">&quot;&quot;</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <comment>Please move your images to qstImages folder, after export html5</comment>
                                <event-block sid="329185861049459">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="774047129507528" type="System" />
                                    </conditions>
                                    <actions>
                                        <action id="-9" name="Set value" sid="557411644170961" type="System">
                                            <param id="0" name="Variable">imgFolder</param>
                                            <param id="1" name="Value">&quot;qstImages/&quot;</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="742512755568360">
                            <conditions>
                                <condition id="0" name="On function" sid="444380871041304" type="Function">
                                    <param id="0" name="Name">&quot;cloud create&quot;</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <variable constant="0" name="minY" sid="429962848313269" static="0" type="number">0</variable>
                                <variable constant="0" name="maxY" sid="866837379689404" static="0" type="number">0</variable>
                                <variable constant="0" name="repeat" sid="317818031407428" static="0" type="number">0</variable>
                                <variable constant="0" name="lengthY" sid="694473864744253" static="0" type="number">0</variable>
                                <event-block sid="730029257229539">
                                    <conditions />
                                    <actions>
                                        <action id="-9" name="Set value" sid="773964974824290" type="System">
                                            <param id="0" name="Variable">minY</param>
                                            <param id="1" name="Value">-600</param>
                                        </action>
                                        <action id="-9" name="Set value" sid="457127909603018" type="System">
                                            <param id="0" name="Variable">maxY</param>
                                            <param id="1" name="Value">loadingObj1.Y - 300</param>
                                        </action>
                                        <action id="-9" name="Set value" sid="937923850841456" type="System">
                                            <param id="0" name="Variable">repeat</param>
                                            <param id="1" name="Value">6</param>
                                        </action>
                                        <action id="-9" name="Set value" sid="498174992026382" type="System">
                                            <param id="0" name="Variable">lengthY</param>
                                            <param id="1" name="Value">minY * -1 + maxY</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <variable constant="0" name="posX" sid="576556292703042" static="0" type="number">0</variable>
                                <variable constant="0" name="posY" sid="858795005199731" static="0" type="number">0</variable>
                                <variable constant="0" name="posAtY" sid="376333044443584" static="0" type="number">0</variable>
                                <variable constant="0" name="posLastX" sid="237033908098257" static="0" type="number">0</variable>
                                <variable constant="0" name="posLastY" sid="226171088596054" static="0" type="number">0</variable>
                                <event-block sid="451211676800259">
                                    <conditions>
                                        <condition id="-12" name="Repeat" sid="563294302477600" type="System">
                                            <param id="0" name="Count">repeat</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="204874996046267">
                                            <conditions />
                                            <actions>
                                                <action id="-9" name="Set value" sid="715424192032673" type="System">
                                                    <param id="0" name="Variable">posX</param>
                                                    <param id="1" name="Value">floor(random(0, LayoutWidth))</param>
                                                </action>
                                                <action id="-9" name="Set value" sid="411331686685244" type="System">
                                                    <param id="0" name="Variable">posAtY</param>
                                                    <param id="1" name="Value">minY + floor(lengthY / repeat * (loopindex + 1))</param>
                                                </action>
                                                <action id="-9" name="Set value" sid="122013774228748" type="System">
                                                    <param id="0" name="Variable">posY</param>
                                                    <param id="1" name="Value">floor(random(posAtY - 100, posAtY + 100))</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="265771787004322">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="531404163855644" type="System">
                                                    <param id="0" name="First value">loopindex</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Second value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <event-block sid="569656895035151">
                                                    <conditions>
                                                        <condition id="-23" name="While" sid="612654663233271" type="System" />
                                                        <condition id="-21" name="Is between values" sid="708804628070394" type="System">
                                                            <param id="0" name="Value">posX</param>
                                                            <param id="1" name="Lower bound">posLastX - 300</param>
                                                            <param id="2" name="Upper bound">posLastX + 300</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-9" name="Set value" sid="367013154810067" type="System">
                                                            <param id="0" name="Variable">posX</param>
                                                            <param id="1" name="Value">floor(random(0, LayoutWidth))</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                        <event-block sid="881948219366182">
                                            <conditions />
                                            <actions>
                                                <action id="-3" name="Create object" sid="759344433224925" type="System">
                                                    <param id="0" name="Object to create">loaderCloud</param>
                                                    <param id="1" name="Layer">&quot;cloud&quot;</param>
                                                    <param id="2" name="X">posX</param>
                                                    <param id="3" name="Y">posY</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="775710805272496">
                                            <conditions />
                                            <actions>
                                                <action id="-9" name="Set value" sid="796154665393647" type="System">
                                                    <param id="0" name="Variable">posLastX</param>
                                                    <param id="1" name="Value">posX</param>
                                                </action>
                                                <action id="-9" name="Set value" sid="187681699795440" type="System">
                                                    <param id="0" name="Variable">posLastY</param>
                                                    <param id="1" name="Value">posLastY</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="907614576035786">
                                    <conditions />
                                    <actions />
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="955677915747494">
                            <conditions>
                                <condition id="-18" name="On created" sid="600406066972653" type="loaderCloud" />
                            </conditions>
                            <actions>
                                <action id="2" name="Stop" sid="610431876096105" type="loaderCloud" />
                                <action id="5" name="Set frame" sid="108254953661102" type="loaderCloud">
                                    <param id="0" name="Frame number">floor(random(0, Self.AnimationFrameCount))</param>
                                </action>
                                <action id="9" name="Set scale" sid="818506501732263" type="loaderCloud">
                                    <param id="0" name="Scale">floor(random(7, 11)) / 10</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="407044593503275">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="994119840626751" type="System">
                                            <param id="0" name="First value">floor(random(0, 2))</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Second value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="CustomMovement" id="2" name="Set speed" sid="550119433428996" type="loaderCloud">
                                            <param id="0" name="Which">1</param>
                                            <param id="1" name="Speed">floor(random(-5, -2))</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="978510353557145">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="988355151140950" type="System" />
                                    </conditions>
                                    <actions>
                                        <action behavior="CustomMovement" id="2" name="Set speed" sid="996090735556290" type="loaderCloud">
                                            <param id="0" name="Which">1</param>
                                            <param id="1" name="Speed">floor(random(3, 6))</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="799600201737012">
                            <conditions />
                            <actions />
                        </event-block>
                    </sub-events>
                </event-group>
            </sub-events>
        </event-group>
    </events>
</c2eventsheet>
