Overhauled text dialogue system to use RexRainbow's text typing plugin to make the text look and flow better.

* Also added a check in Preloader to force the game to fullscreen mode if it somehow did not start in it.
origin
YandolsZX 6 years ago
parent 4b69098fcb
commit bf1f71863c
  1. 2
      Event sheets/ES - Intro Scene.uistate.xml
  2. 86
      Event sheets/ES - Intro Scene.xml
  3. 2
      Event sheets/ES - Level 1 PRE.xml
  4. 15
      Event sheets/ES - Preloader.xml
  5. 4
      Layouts/Intro Scene.uistate.xml
  6. 8
      Layouts/Intro Scene.xml
  7. 15
      Layouts/Level 1 PRE.uistate.xml
  8. 92
      Layouts/Level 1 PRE.xml
  9. 5
      Layouts/Preloader.xml
  10. 16
      Resistance Saga FYP.caproj
  11. BIN
      Resistance Saga FYP.capx.autosave
  12. BIN
      Resistance Saga FYP.capx.backup1
  13. 4
      Resistance Saga FYP.uistate.xml

@ -4,7 +4,7 @@
It is entirely optional and the project will load without it. If you are placing the project under source control,
you probably do not want to add any .uistate.xml files to the repository.-->
<show-addaction-links>1</show-addaction-links>
<scroll-pos>2600</scroll-pos>
<scroll-pos>2200</scroll-pos>
<conditions-column>240</conditions-column>
<actions-namecolumn>131</actions-namecolumn>
<condition-namecolumns>

@ -6,8 +6,8 @@
<variable constant="0" name="IS_IntroSceneReadyToPlay" sid="902902383729646" static="0" type="number">0</variable>
<variable constant="0" name="IS_PlaneRocketHits" sid="840998402626626" static="0" type="number">0</variable>
<variable constant="0" name="IS_PlaneGravityStop" sid="544288979070403" static="0" type="number">0</variable>
<comment>Intro Scene Storyline and Mechanics</comment>
<event-block sid="461897681419790">
<comment>(This line is for debugging purposes only)</comment>
<event-block disabled="1" sid="461897681419790">
<conditions>
<condition id="-41" name="Is between angles" sid="103823682515376" type="System">
<param id="0" name="Angle">0</param>
@ -17,6 +17,7 @@
</conditions>
<actions />
</event-block>
<comment>Intro Scene Storyline and Mechanics</comment>
<event-block sid="513294188695336">
<conditions>
<condition id="-2" name="On start of layout" sid="995600375632177" type="System" />
@ -85,12 +86,6 @@
<action id="-15" name="Set visible" sid="823504083312468" type="IS_TreeArray">
<param id="0" name="Visibility">1</param>
</action>
<action disabled="1" id="3" name="Start" sid="584896724874673" type="IS_TreeArray">
<param id="0" name="From">1</param>
</action>
<action disabled="1" id="12" name="Set repeat-to frame" sid="996065700239310" type="IS_TreeArray">
<param id="0" name="Frame number">0</param>
</action>
<action id="-16" name="Wait" sid="726852262193097" type="System">
<param id="0" name="Seconds">5</param>
</action>
@ -106,8 +101,15 @@
<action id="-15" name="Set visible" sid="804119167126496" type="IS_TFDialogue">
<param id="0" name="Visibility">1</param>
</action>
<action id="0" name="Set text" sid="453553795637149" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="868498662369881" type="IS_TFDialogue">
<param id="0" name="Text">&quot;*intercom ringing*&quot;</param>
<param id="1" name="Speed">0.02</param>
</action>
<action disabled="1" id="0" name="Set text" sid="453553795637149" type="IS_TFDialogue">
<param id="0" name="Text">&quot;*intercom ringing*&quot;</param>
</action>
<action disabled="1" id="-41" name="Wait for signal" sid="344213381294372" type="System">
<param id="0" name="Tag">&quot;NEXT&quot;</param>
</action>
<action id="-16" name="Wait" sid="909715326916828" type="System">
<param id="0" name="Seconds">1.8</param>
@ -118,7 +120,11 @@
<action id="-16" name="Wait" sid="116614500945129" type="System">
<param id="0" name="Seconds">0.05</param>
</action>
<action id="0" name="Set text" sid="833400499758746" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="375883809861315" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fox One, I am picking you up on the radar, you are now within base range. Over.&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="833400499758746" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fox One, I am picking you up on the radar, you are now within base range. Over.&quot;</param>
</action>
<action id="-16" name="Wait" sid="898839628650883" type="System">
@ -130,7 +136,11 @@
<action id="-16" name="Wait" sid="514029937530474" type="System">
<param id="0" name="Seconds">0.05</param>
</action>
<action id="0" name="Set text" sid="202189584992424" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="746376813437570" type="IS_TFDialogue">
<param id="0" name="Text">newline &amp; &quot;Roger that. Fox One pulling down and reducing altitude. Over.&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="202189584992424" type="IS_TFDialogue">
<param id="0" name="Text">newline &amp; &quot;Roger that. Fox One pulling down and reducing altitude. Over.&quot;</param>
</action>
<action id="-16" name="Wait" sid="749689254296849" type="System">
@ -142,7 +152,11 @@
<action id="-16" name="Wait" sid="995749057366830" type="System">
<param id="0" name="Seconds">0.05</param>
</action>
<action id="0" name="Set text" sid="226440840125429" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="910987989483480" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;10-4. Reduce your altitude by 200 meters and-&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="226440840125429" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;10-4. Reduce your altitude by 200 meters and-&quot;</param>
</action>
<action id="-16" name="Wait" sid="821931376493166" type="System">
@ -175,7 +189,11 @@
<action id="-16" name="Wait" sid="718381199114779" type="System">
<param id="0" name="Seconds">0.05</param>
</action>
<action id="0" name="Set text" sid="961048972262000" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="208878684544537" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fox One, we&apos;re picking up a bogey coming directly towards you.&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="961048972262000" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fox One, we&apos;re picking up a bogey coming directly towards you.&quot;</param>
</action>
<action id="-16" name="Wait" sid="668661970068488" type="System">
@ -187,7 +205,11 @@
<action id="-16" name="Wait" sid="841600618218508" type="System">
<param id="0" name="Seconds">0.05</param>
</action>
<action id="0" name="Set text" sid="484597024737289" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="396324054304842" type="IS_TFDialogue">
<param id="0" name="Text">newline &amp; &quot;A what? Oh no, it&apos;s a mis-&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="484597024737289" type="IS_TFDialogue">
<param id="0" name="Text">newline &amp; &quot;A what? Oh no, it&apos;s a mis-&quot;</param>
</action>
<action id="-16" name="Wait" sid="479560264906856" type="System">
@ -246,11 +268,15 @@
<action id="-15" name="Set visible" sid="183200386647664" type="IS_TFDialogue">
<param id="0" name="Visibility">1</param>
</action>
<action id="0" name="Set text" sid="491926381207848" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="122152254449405" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fox One, what happened!? Your readings have become irregular!!&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="491926381207848" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fox One, what happened!? Your readings have become irregular!!&quot;</param>
</action>
<action id="-16" name="Wait" sid="472678061071788" type="System">
<param id="0" name="Seconds">3.5</param>
<param id="0" name="Seconds">4.4</param>
</action>
<action id="0" name="Set text" sid="505919106377186" type="IS_TFDialogue">
<param id="0" name="Text">&quot;&quot;</param>
@ -258,11 +284,15 @@
<action id="-16" name="Wait" sid="623220815571769" type="System">
<param id="0" name="Seconds">0.05</param>
</action>
<action id="0" name="Set text" sid="790788703173218" type="IS_TFDialogue">
<action behavior="Typing" id="3" name="Type text" sid="878335237307301" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fo... ...e, can yo... sti... ...r ... -&quot;</param>
<param id="1" name="Speed">0.05</param>
</action>
<action disabled="1" id="0" name="Set text" sid="790788703173218" type="IS_TFDialogue">
<param id="0" name="Text">&quot;COMMAND CENTER: &quot; &amp; newline &amp; &quot;Fo... ...e, can yo... sti... ...r ... -&quot;</param>
</action>
<action id="-16" name="Wait" sid="748496401005258" type="System">
<param id="0" name="Seconds">3.5</param>
<param id="0" name="Seconds">4.4</param>
</action>
<action id="-15" name="Set visible" sid="187682721669574" type="IS_DialogBox">
<param id="0" name="Visibility">0</param>
@ -275,7 +305,7 @@
</action>
</actions>
<sub-events>
<comment>For second part of the scene go to End of Scene</comment>
<comment>For next part of the scene go to &quot;End of Scene&quot;</comment>
</sub-events>
</event-block>
<comment>Parallax Scroller Start</comment>
@ -287,7 +317,7 @@
<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>
<param id="0" name="Interval (seconds)">0.3</param>
</condition>
</conditions>
<actions>
@ -437,7 +467,7 @@
<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">1500</param>
<param id="1" name="Distance">1800</param>
</condition>
</conditions>
<actions>
@ -473,5 +503,19 @@
</action>
</actions>
</event-block>
<comment>New Text System Handlers</comment>
<event-block disabled="1" sid="140381127798746">
<conditions>
<condition behavior="Typing" id="2" name="On typing completed" sid="865452670124706" type="IS_TFDialogue" />
</conditions>
<actions>
<action id="-16" name="Wait" sid="793092082113075" type="System">
<param id="0" name="Seconds">0.1</param>
</action>
<action id="-42" name="Signal" sid="413932700306667" type="System">
<param id="0" name="Tag">&quot;NEXT&quot;</param>
</action>
</actions>
</event-block>
</events>
</c2eventsheet>

@ -3,6 +3,8 @@
<!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
<name>ES - Level 1 PRE</name>
<events>
<variable constant="0" name="L1PRE_ReadyToShow" sid="521233026239865" static="0" type="number">0</variable>
<variable constant="0" name="L1PRE_ReadyToGo" sid="743867975042956" static="0" type="number">0</variable>
<comment>Post Main Menu Intro Goes here</comment>
</events>
</c2eventsheet>

@ -22,6 +22,21 @@
</action>
</actions>
</event-block>
<comment>Force the game to switch to full screen mode if the game did not start in it</comment>
<event-block sid="551128505294710">
<conditions>
<condition id="-2" name="On start of layout" sid="589444204051829" type="System" />
<condition id="-18" inverted="1" name="Is in preview" sid="782271285373657" type="System" />
</conditions>
<actions>
<action id="10" name="Request fullscreen" sid="607915611232662" type="Browser">
<param id="0" name="Mode">0</param>
</action>
<action id="18" name="Lock orientation" sid="247124623151759" type="Browser">
<param id="0" name="Orientation">1</param>
</action>
</actions>
</event-block>
<comment>Progress bar and loading</comment>
<event-block sid="407600447699784">
<conditions>

@ -30,7 +30,7 @@ you probably do not want to add any .uistate.xml files to the repository.-->
<layer locked="1" name="Scene BG" parallax-in-editor="0" visible="1" />
<layer locked="1" name="Scene Foreground" parallax-in-editor="0" visible="1" />
<layer locked="0" name="Scene Foremostground" parallax-in-editor="0" visible="1" />
<layer locked="1" name="Scene Text Dialog Box" parallax-in-editor="0" visible="0" />
<layer locked="1" name="Scene Text Font" parallax-in-editor="0" visible="0" />
<layer locked="1" name="Scene Text Dialog Box" parallax-in-editor="0" visible="1" />
<layer locked="1" name="Scene Text Font" parallax-in-editor="0" visible="1" />
</layers>
</c2uistate>

@ -527,6 +527,14 @@
<character-spacing>-4</character-spacing>
<line-height>0</line-height>
</properties>
<behavior-instances>
<behavior-instance type="Typing">
<properties>
<typing-mode>Left to right</typing-mode>
<line-break>No</line-break>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>

@ -5,10 +5,10 @@ It is entirely optional and the project will load without it. If you are placin
you probably do not want to add any .uistate.xml files to the repository.-->
<camera>
<position-x>658.67</position-x>
<position-y>465</position-y>
<position-z>200</position-z>
<position-y>215</position-y>
<position-z>100</position-z>
<lookat-x>658.67</lookat-x>
<lookat-y>465</lookat-y>
<lookat-y>215</lookat-y>
<lookat-z>0</lookat-z>
</camera>
<snap-to-grid>0</snap-to-grid>
@ -23,8 +23,13 @@ you probably do not want to add any .uistate.xml files to the repository.-->
<property expanded="0" name="Margins" />
<property expanded="1" name="Effects" />
</properties>
<active-layer name="Layer 0" />
<active-layer name="Scene Foreground" />
<layers>
<layer locked="0" name="Layer 0" parallax-in-editor="0" visible="1" />
<layer locked="1" name="Black" parallax-in-editor="0" visible="1" />
<layer locked="0" name="Scene Background" parallax-in-editor="0" visible="1" />
<layer locked="0" name="Scene Foreground" parallax-in-editor="0" visible="1" />
<layer locked="0" name="Scene Elements" parallax-in-editor="0" visible="1" />
<layer locked="0" name="Scene Text Dialogue Box" parallax-in-editor="0" visible="1" />
<layer locked="0" name="Scene Text Font" parallax-in-editor="0" visible="1" />
</layers>
</c2uistate>

@ -13,7 +13,7 @@
</margins>
<unbounded-scrolling>0</unbounded-scrolling>
<layers>
<layer name="Layer 0" sid="104572630288323">
<layer name="Black" sid="104572630288323">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>0</transparent>
@ -54,6 +54,96 @@
</instances>
<effects />
</layer>
<layer name="Scene Background" sid="309061995465440">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>1</transparent>
<parallax>
<x>1</x>
<y>1</y>
</parallax>
<zoom-rate>1</zoom-rate>
<opacity>1</opacity>
<force-own-texture>0</force-own-texture>
<global>0</global>
<use-render-cells>0</use-render-cells>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<instances />
<effects />
</layer>
<layer name="Scene Foreground" sid="442025084502525">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>1</transparent>
<parallax>
<x>1</x>
<y>1</y>
</parallax>
<zoom-rate>1</zoom-rate>
<opacity>1</opacity>
<force-own-texture>0</force-own-texture>
<global>0</global>
<use-render-cells>0</use-render-cells>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<instances />
<effects />
</layer>
<layer name="Scene Elements" sid="486895913042598">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>1</transparent>
<parallax>
<x>1</x>
<y>1</y>
</parallax>
<zoom-rate>1</zoom-rate>
<opacity>1</opacity>
<force-own-texture>0</force-own-texture>
<global>0</global>
<use-render-cells>0</use-render-cells>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<instances />
<effects />
</layer>
<layer name="Scene Text Dialogue Box" sid="618384586042357">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>1</transparent>
<parallax>
<x>1</x>
<y>1</y>
</parallax>
<zoom-rate>1</zoom-rate>
<opacity>1</opacity>
<force-own-texture>0</force-own-texture>
<global>0</global>
<use-render-cells>0</use-render-cells>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<instances />
<effects />
</layer>
<layer name="Scene Text Font" sid="122395400010926">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>1</transparent>
<parallax>
<x>1</x>
<y>1</y>
</parallax>
<zoom-rate>1</zoom-rate>
<opacity>1</opacity>
<force-own-texture>0</force-own-texture>
<global>0</global>
<use-render-cells>0</use-render-cells>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<instances />
<effects />
</layer>
</layers>
<nonworld-instances />
<effects />

@ -126,6 +126,11 @@
<auto-import></auto-import>
</properties>
</instance>
<instance type="TimeLine" uid="52">
<properties>
<game-time>Yes</game-time>
</properties>
</instance>
</nonworld-instances>
<effects />
</c2layout>

@ -2,7 +2,7 @@
<c2project>
<name>Resistance Saga FYP</name>
<description>Resistance Saga FYP</description>
<version>2.0.1.0334</version>
<version>2.0.1.0340</version>
<author>Yandols Zeon X</author>
<author-email>admin@rail.zxicar.us</author-email>
<author-website>https://yandols.xyz/resistancesaga</author-website>
@ -13,6 +13,7 @@
<plugin author="Scirra" id="Audio" version="1">Audio</plugin>
<plugin author="Scirra" id="Browser" version="1">Browser</plugin>
<plugin author="Scirra" id="Keyboard" version="1">Keyboard</plugin>
<plugin author="Rex.Rainbow" id="Rex_TimeLine" version="1">TimeLine</plugin>
<plugin author="Scirra" id="Sprite" version="1">Sprite</plugin>
<plugin author="Scirra" id="Spritefont2" version="1">Sprite font</plugin>
<plugin author="Scirra" id="Text" version="1">Text</plugin>
@ -25,6 +26,7 @@
<behavior author="Scirra" id="EightDir" version="1">8 Direction</behavior>
<behavior author="Scirra" id="Fade" version="1">Fade</behavior>
<behavior author="Scirra" id="Platform" version="1">Platform</behavior>
<behavior author="Rex.Rainbow" id="Rex_text_typing" version="1">Typing</behavior>
<behavior author="Scirra" id="Sin" version="1">Sine</behavior>
<behavior author="Scirra" id="destroy" version="1">Destroy outside layout</behavior>
<behavior author="Scirra" id="jumpthru" version="1">Jump-thru</behavior>
@ -272,7 +274,7 @@
<object-type name="IS_Explosion" sid="679061386666336">
<plugin id="Sprite" />
<animation-folder>
<animation framecount="81" loop="0" name="Default" pingpong="0" repeatcount="0" repeatto="0" sid="197595730925800" speed="5">
<animation framecount="81" loop="0" name="Default" pingpong="0" repeatcount="0" repeatto="0" sid="197595730925800" speed="33">
<frame duration="1" hotspotX="0.5" hotspotY="0.5">
<collision-poly>
<point x="0.0388889" y="0.0388889" />
@ -443,6 +445,11 @@
</object-type>
<object-type name="IS_TFDialogue" sid="702185114114446">
<plugin id="Spritefont2" />
<behaviors>
<behavior-type name="Typing" sid="781429858640289">
<behavior id="Rex_text_typing" />
</behavior-type>
</behaviors>
<texture original-source="C:\Users\yando\Google Drive\Photoshops (N550LF)\College\FYP\SpriteFont_i.png" />
</object-type>
<object-type name="IS_TFHoldToSkip" sid="299645594723037">
@ -588,7 +595,7 @@
<object-type name="IS_TreeArray" sid="975782626722081">
<plugin id="Sprite" />
<animation-folder>
<animation framecount="8" loop="1" name="Default" pingpong="0" repeatcount="0" repeatto="0" sid="552460478600307" speed="60">
<animation framecount="8" loop="1" name="Default" pingpong="0" repeatcount="0" repeatto="0" sid="552460478600307" speed="48">
<frame duration="1" hotspotX="0.5" hotspotY="0.5" original-source="C:\Users\yando\Google Drive\Photoshops (N550LF)\College\FYP\TreeArray\TreeArray01.png" />
<frame duration="1" hotspotX="0.5" hotspotY="0.5" original-source="C:\Users\yando\Google Drive\Photoshops (N550LF)\College\FYP\TreeArray\TreeArray02.png" />
<frame duration="1" hotspotX="0.5" hotspotY="0.5" original-source="C:\Users\yando\Google Drive\Photoshops (N550LF)\College\FYP\TreeArray\TreeArray03.png" />
@ -608,6 +615,9 @@
</animation>
</animation-folder>
</object-type>
<object-type global="1" name="TimeLine" sid="346494476024815">
<plugin id="Rex_TimeLine" />
</object-type>
</object-folder>
<families />
<layout-folder>

Binary file not shown.

Binary file not shown.

@ -15,8 +15,8 @@ you probably do not want to add any .uistate.xml files to the repository.-->
<layout order="4">Intro Scene</layout>
<layout order="6">Level 1 PRE</layout>
<event-sheet order="1">ES - Preloader</event-sheet>
<event-sheet order="3">ES - Main Menu</event-sheet>
<event-sheet active="1" order="5">ES - Intro Scene</event-sheet>
<event-sheet active="1" order="3">ES - Main Menu</event-sheet>
<event-sheet order="5">ES - Intro Scene</event-sheet>
<event-sheet order="7">ES - Level 1 PRE</event-sheet>
</open-tabs>
<properties>

Loading…
Cancel
Save