This is the repository for Yandols' Bachelor's Degree Final Year Project Game (2019). Game created in Construct 2 and Launcher/Updater is created with AHK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ResistanceSaga/Event sheets/ES - Intro Scene.xml

288 lines
16 KiB

<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
<!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
<name>ES - Intro Scene</name>
<events>
<comment>PreTitle Chimes and co</comment>
<variable constant="0" name="IntroSceneReadyToPlay" sid="902902383729646" static="0" type="number">0</variable>
<variable constant="0" name="PlaneRocketHits" sid="840998402626626" static="0" type="number">0</variable>
<variable constant="0" name="PlaneGravityStop" sid="544288979070403" static="0" type="number">0</variable>
<event-block sid="513294188695336">
<conditions>
<condition id="-2" name="On start of layout" sid="995600375632177" type="System" />
</conditions>
<actions>
<action id="-16" name="Wait" sid="997563492016376" type="System">
<param id="0" name="Seconds">1</param>
</action>
<action id="0" name="Play" sid="913637349796519" type="Audio">
<param id="0" name="Audio file">FS_PreTitleChime_First</param>
<param id="2" name="Loop">0</param>
<param id="3" name="Volume">0</param>
<param id="1" name="Tag (optional)">&quot;PreTitleChime_First&quot;</param>
</action>
<action id="-16" name="Wait" sid="455797331750189" type="System">
<param id="0" name="Seconds">0.25</param>
</action>
<action id="-15" name="Set visible" sid="197950139932507" type="ISPlaceholder1">
<param id="0" name="Visibility">1</param>
</action>
<action id="-16" name="Wait" sid="590110910565292" type="System">
<param id="0" name="Seconds">4</param>
</action>
<action id="-15" name="Set visible" sid="450763409755570" type="ISPlaceholder1">
<param id="0" name="Visibility">0</param>
</action>
<action id="0" name="Play" sid="358103881637579" type="Audio">
<param id="0" name="Audio file">FS_PreTitleChime_Second</param>
<param id="2" name="Loop">0</param>
<param id="3" name="Volume">0</param>
<param id="1" name="Tag (optional)">&quot;PreTitleChime_Second&quot;</param>
</action>
<action id="-16" name="Wait" sid="580002325389783" type="System">
<param id="0" name="Seconds">0.25</param>
</action>
<action id="-15" name="Set visible" sid="721186675583241" type="ISPlaceholder2">
<param id="0" name="Visibility">1</param>
</action>
<action id="-16" name="Wait" sid="226073530213000" type="System">
<param id="0" name="Seconds">4</param>
</action>
<action id="-15" name="Set visible" sid="755254405742939" type="ISPlaceholder2">
<param id="0" name="Visibility">0</param>
</action>
<action id="-16" name="Wait" sid="421682616552694" type="System">
<param id="0" name="Seconds">0.25</param>
</action>
<action id="-9" name="Set value" sid="723650957008999" type="System">
<param id="0" name="Variable">IntroSceneReadyToPlay</param>
<param id="1" name="Value">1</param>
</action>
</actions>
</event-block>
<comment>Parallax Scroller Start</comment>
<event-block sid="362387943260484">
<conditions>
<condition id="-14" name="Compare variable" sid="700195321526806" type="System">
<param id="0" name="Variable">IntroSceneReadyToPlay</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">1</param>
</condition>
<condition id="-6" name="Every X seconds" sid="242256608587485" type="System">
<param id="0" name="Interval (seconds)">0.4</param>
</condition>
</conditions>
<actions>
<action id="-1" name="Set X" sid="980995455565759" type="IS_Mountain">
<param id="0" name="X">IS_Mountain.X-1</param>
</action>
</actions>
</event-block>
<comment>Intro Scene Start</comment>
<event-block sid="513755195206366">
<conditions>
<condition id="-14" name="Compare variable" sid="394012137273007" type="System">
<param id="0" name="Variable">IntroSceneReadyToPlay</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">1</param>
</condition>
</conditions>
<actions>
<action id="-15" name="Set visible" sid="551366172251136" type="IS_sky_lightened">
<param id="0" name="Visibility">1</param>
</action>
<action id="-15" name="Set visible" sid="699323167363416" type="IS_Mountain">
<param id="0" name="Visibility">1</param>
</action>
<action id="-15" name="Set visible" sid="908838361382407" type="IS_Plane">
<param id="0" name="Visibility">1</param>
</action>
<action id="-16" name="Wait" sid="726852262193097" type="System">
<param id="0" name="Seconds">5</param>
</action>
<action id="-15" name="Set visible" sid="577214027189803" type="IS_Exclamation">
<param id="0" name="Visibility">1</param>
</action>
<action id="6" name="Set speed" sid="806603209651125" type="IS_Exclamation">
<param id="0" name="Speed">5</param>
</action>
<action id="4" name="Set animation" sid="547611516493128" type="IS_Exclamation">
<param id="0" name="Animation">&quot;Animated&quot;</param>
<param id="1" name="From">1</param>
</action>
<action behavior="Bullet" id="3" name="Set angle of motion" sid="656837946981707" type="IS_Rocket">
<param id="0" name="Angle">215</param>
</action>
<action behavior="Bullet" id="3" name="Set angle of motion" sid="893072675453550" type="IS_Rocket2">
<param id="0" name="Angle">215</param>
</action>
<action behavior="Bullet" id="3" name="Set angle of motion" sid="644786977905984" type="IS_Rocket3">
<param id="0" name="Angle">215</param>
</action>
<action behavior="Bullet" id="5" name="Set enabled" sid="636014698379359" type="IS_Rocket">
<param id="0" name="State">1</param>
</action>
<action behavior="Bullet" id="5" name="Set enabled" sid="433568176143493" type="IS_Rocket2">
<param id="0" name="State">1</param>
</action>
<action behavior="Bullet" id="5" name="Set enabled" sid="915715078597017" type="IS_Rocket3">
<param id="0" name="State">1</param>
</action>
<action id="6" name="Set speed" sid="816015392059579" type="IS_Explosion">
<param id="0" name="Speed">33</param>
</action>
<action id="-16" name="Wait" sid="965633286941124" type="System">
<param id="0" name="Seconds">1.2</param>
</action>
<action id="-9" name="Destroy" sid="258965388487858" type="IS_Exclamation" />
</actions>
</event-block>
<comment>Upon Rocket Collision with Plane</comment>
<event-block sid="544371476278341">
<conditions>
<condition id="0" name="On collision with another object" sid="398159809856391" type="IS_Rocket">
<param id="0" name="Object">IS_Plane</param>
</condition>
</conditions>
<actions>
<action id="-10" name="Add to" sid="668551902029011" type="System">
<param id="0" name="Variable">PlaneRocketHits</param>
<param id="1" name="Value">1</param>
</action>
<action id="11" name="Set collisions enabled" sid="795060396730701" type="IS_Rocket">
<param id="0" name="Collisions">0</param>
</action>
<action id="-9" name="Destroy" sid="348565026840650" type="IS_Rocket" />
<action id="0" name="Spawn another object" sid="511787014874527" type="IS_Rocket">
<param id="0" name="Object">IS_Explosion</param>
<param id="1" name="Layer">&quot;Scene Foreground&quot;</param>
<param id="2" name="Image point">0</param>
</action>
</actions>
</event-block>
<event-block sid="752595239195378">
<conditions>
<condition id="0" name="On collision with another object" sid="658540729137623" type="IS_Rocket2">
<param id="0" name="Object">IS_Plane</param>
</condition>
</conditions>
<actions>
<action id="-10" name="Add to" sid="233347621741290" type="System">
<param id="0" name="Variable">PlaneRocketHits</param>
<param id="1" name="Value">1</param>
</action>
<action id="11" name="Set collisions enabled" sid="752608857554115" type="IS_Rocket2">
<param id="0" name="Collisions">0</param>
</action>
<action id="-9" name="Destroy" sid="346267073689944" type="IS_Rocket2" />
<action id="0" name="Spawn another object" sid="255034001143117" type="IS_Rocket2">
<param id="0" name="Object">IS_Explosion</param>
<param id="1" name="Layer">&quot;Scene Foreground&quot;</param>
<param id="2" name="Image point">0</param>
</action>
</actions>
</event-block>
<event-block sid="305192101424955">
<conditions>
<condition id="0" name="On collision with another object" sid="695403809667724" type="IS_Rocket3">
<param id="0" name="Object">IS_Plane</param>
</condition>
</conditions>
<actions>
<action id="-10" name="Add to" sid="181828051126824" type="System">
<param id="0" name="Variable">PlaneRocketHits</param>
<param id="1" name="Value">1</param>
</action>
<action id="11" name="Set collisions enabled" sid="849417136596146" type="IS_Rocket3">
<param id="0" name="Collisions">0</param>
</action>
<action id="-9" name="Destroy" sid="487867142004930" type="IS_Rocket3" />
<action id="0" name="Spawn another object" sid="480912656100175" type="IS_Rocket3">
<param id="0" name="Object">IS_Explosion</param>
<param id="1" name="Layer">&quot;Scene Foreground&quot;</param>
<param id="2" name="Image point">0</param>
</action>
</actions>
</event-block>
<comment>Second Part of Intro Scene Start</comment>
<event-block sid="695455917938374">
<conditions>
<condition id="-14" name="Compare variable" sid="332480324520319" type="System">
<param id="0" name="Variable">PlaneRocketHits</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">3</param>
</condition>
</conditions>
<actions>
<action behavior="Sine" id="0" name="Set active" sid="632766440129652" type="IS_Plane">
<param id="0" name="State">0</param>
</action>
<action behavior="Bullet" id="5" name="Set enabled" sid="763078498105171" type="IS_Plane">
<param id="0" name="State">1</param>
</action>
<action behavior="Bullet" id="0" name="Set speed" sid="499818774402433" type="IS_Plane">
<param id="0" name="Speed">160</param>
</action>
</actions>
</event-block>
<event-block sid="517191088440305">
<conditions>
<condition id="-14" name="Compare variable" sid="938021552887259" type="System">
<param id="0" name="Variable">PlaneRocketHits</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">3</param>
</condition>
<condition id="-14" name="Compare variable" sid="603201919531402" type="System">
<param id="0" name="Variable">PlaneGravityStop</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">0</param>
</condition>
<condition id="-6" name="Every X seconds" sid="360027979547302" type="System">
<param id="0" name="Interval (seconds)">1.0</param>
</condition>
</conditions>
<actions>
<action behavior="Bullet" id="3" name="Set angle of motion" sid="323024504980571" type="IS_Plane">
<param id="0" name="Angle">(IS_Plane.Bullet.AngleOfMotion+5)</param>
</action>
<action behavior="Bullet" id="2" name="Set gravity" sid="146903879967907" type="IS_Plane">
<param id="0" name="Gravity">(IS_Plane.Bullet.Gravity+2)</param>
</action>
</actions>
<sub-events>
<event-block sid="277155585652163">
<conditions>
<condition behavior="Bullet" id="1" name="Compare distance travelled" sid="462874732361289" type="IS_Plane">
<param id="0" name="Comparison">5</param>
<param id="1" name="Distance">500</param>
</condition>
</conditions>
<actions>
<action id="-9" name="Set value" sid="217811514252888" type="System">
<param id="0" name="Variable">PlaneGravityStop</param>
<param id="1" name="Value">1</param>
</action>
<action behavior="Bullet" id="2" name="Set gravity" sid="675634851192831" type="IS_Plane">
<param id="0" name="Gravity">0</param>
</action>
</actions>
</event-block>
</sub-events>
</event-block>
<comment>End of Scene, go to Main Menu</comment>
<event-block sid="199171245973396">
<conditions>
<condition behavior="Bullet" id="1" name="Compare distance travelled" sid="279384153624508" type="IS_Plane">
<param id="0" name="Comparison">5</param>
<param id="1" name="Distance">2000</param>
</condition>
</conditions>
<actions>
<action id="-2" name="Go to layout" sid="989137113667450" type="System">
<param id="0" name="Layout">Main Menu</param>
</action>
</actions>
</event-block>
</events>
</c2eventsheet>