<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://replica.wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=Gamebridge%2FTrigger_Tutorial</id>
	<title>Gamebridge/Trigger Tutorial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://replica.wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=Gamebridge%2FTrigger_Tutorial"/>
	<link rel="alternate" type="text/html" href="https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;action=history"/>
	<updated>2026-04-03T21:30:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=50124&amp;oldid=prev</id>
		<title>Lxpk: Lxpk moved page Gamebridge/Unity Trigger Tutorial to Gamebridge/Trigger Tutorial</title>
		<link rel="alternate" type="text/html" href="https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=50124&amp;oldid=prev"/>
		<updated>2015-11-14T15:48:17Z</updated>

		<summary type="html">&lt;p&gt;Lxpk moved page &lt;a href=&quot;/wiki/Gamebridge/Unity_Trigger_Tutorial&quot; class=&quot;mw-redirect&quot; title=&quot;Gamebridge/Unity Trigger Tutorial&quot;&gt;Gamebridge/Unity Trigger Tutorial&lt;/a&gt; to &lt;a href=&quot;/wiki/Gamebridge/Trigger_Tutorial&quot; title=&quot;Gamebridge/Trigger Tutorial&quot;&gt;Gamebridge/Trigger Tutorial&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:48, 14 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lxpk</name></author>
	</entry>
	<entry>
		<id>https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=50122&amp;oldid=prev</id>
		<title>Lxpk: Lxpk moved page Unity Trigger Tutorial to Gamebridge/Unity Trigger Tutorial</title>
		<link rel="alternate" type="text/html" href="https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=50122&amp;oldid=prev"/>
		<updated>2015-11-14T15:47:22Z</updated>

		<summary type="html">&lt;p&gt;Lxpk moved page &lt;a href=&quot;/wiki/Unity_Trigger_Tutorial&quot; class=&quot;mw-redirect&quot; title=&quot;Unity Trigger Tutorial&quot;&gt;Unity Trigger Tutorial&lt;/a&gt; to &lt;a href=&quot;/wiki/Gamebridge/Unity_Trigger_Tutorial&quot; class=&quot;mw-redirect&quot; title=&quot;Gamebridge/Unity Trigger Tutorial&quot;&gt;Gamebridge/Unity Trigger Tutorial&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:47, 14 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lxpk</name></author>
	</entry>
	<entry>
		<id>https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=49915&amp;oldid=prev</id>
		<title>Lxpk at 06:41, 4 November 2015</title>
		<link rel="alternate" type="text/html" href="https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=49915&amp;oldid=prev"/>
		<updated>2015-11-04T06:41:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:41, 3 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;How could we use a script to stop ourselves from falling off the edge?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;How could we use a script to stop ourselves from falling off the edge?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are at least 2 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;obvious &lt;/del&gt;ways to do it:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are at least 2 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;logical &lt;/ins&gt;ways to do it:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check to see if the height of the player (their transform.position.y value) is less than the height of the lava (a y value below the ground).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check to see if the height of the player (their transform.position.y value) is less than the height of the lava (a y value below &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0 which is where &lt;/ins&gt;the ground &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is&lt;/ins&gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make an actual cube to represent the lava below the ground and make it a trigger with a script that handles the OnTriggerEnter event when you touch it.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make an actual cube to represent the lava below the ground and make it a trigger with a script that handles the OnTriggerEnter event when you touch it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lxpk</name></author>
	</entry>
	<entry>
		<id>https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=49914&amp;oldid=prev</id>
		<title>Lxpk: more fun to read</title>
		<link rel="alternate" type="text/html" href="https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=49914&amp;oldid=prev"/>
		<updated>2015-11-04T06:39:56Z</updated>

		<summary type="html">&lt;p&gt;more fun to read&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:39, 3 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Add point lights to make it look cool and more cubes to jump around on.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Add point lights to make it look cool and more cubes to jump around on.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Next we&amp;#039;ll learn how to add a script to stop yourself from falling infinitely off the edge.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Next we&amp;#039;ll learn how to add a script to stop yourself from falling infinitely off the edge.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;How could we use a script to stop ourselves from falling off the edge?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;There are at least 2 obvious ways to do it:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# Check to see if the height of the player (their transform.position.y value) is less than the height of the lava (a y value below the ground).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# Make an actual cube to represent the lava below the ground and make it a trigger with a script that handles the OnTriggerEnter event when you touch it.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;However we decide to detect that the player has fallen, we need to decide what to do about it.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;What should happen in the game when you fall off an edge?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;There are a few options:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# In most games, you start over when you die or get stuck by returning to the start of the whole level.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# In other games, you return to the most recent checkpoint that you&#039;ve reached. (Unless you get stuck on some strange buggy corner of the game the developers forgot to test adequately).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# In a few games like Prince of Persia, you can rewind time to go back to before you did that one  thing that would have gotten you killed. THere&#039;s a Unity plugin called [https://www.assetstore.unity3d.com/en/#!/content/31225 Chronos] that lets you rewind time and change time in different regions at the same time.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Create a lava cube to avoid falling infinitely&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Create a lava cube to avoid falling infinitely&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Select the &amp;quot;ground&amp;quot; cube.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Select the &amp;quot;ground&amp;quot; cube.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lxpk</name></author>
	</entry>
	<entry>
		<id>https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=49913&amp;oldid=prev</id>
		<title>Lxpk: Created page with &quot; Learning to make games with Unity is easy with the right tutorials and resources.   * Coding Jar Tutorials ** Self-paced tutorials with guided voice and automatically advanci...&quot;</title>
		<link rel="alternate" type="text/html" href="https://replica.wiki.extremist.software/index.php?title=Gamebridge/Trigger_Tutorial&amp;diff=49913&amp;oldid=prev"/>
		<updated>2015-11-04T06:25:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; Learning to make games with Unity is easy with the right tutorials and resources.   * Coding Jar Tutorials ** Self-paced tutorials with guided voice and automatically advanci...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Learning to make games with Unity is easy with the right tutorials and resources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Coding Jar Tutorials&lt;br /&gt;
** Self-paced tutorials with guided voice and automatically advancing steps.&lt;br /&gt;
** [[Download them]] and give them a go.&lt;br /&gt;
* Unity 101 Tutorials&lt;br /&gt;
** Fall triggers&lt;br /&gt;
** Coins&lt;br /&gt;
* [[Unity/Learn]] has loads of great tutorials.&lt;br /&gt;
** Scripting&lt;br /&gt;
&lt;br /&gt;
=== Unity 101: Fall Triggers ===&lt;br /&gt;
&lt;br /&gt;
This is Unity 101 in 30 minutes and you are about to create your first video game!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create your first playable game scene&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Download, install and open [[Unity]]. (Download and install time doesn&amp;#039;t count against the 10 minutes!)&lt;br /&gt;
## Create a new project by clicking File Menu / New Project (You can play with Angry Bots later!)&lt;br /&gt;
## Choose to import just Character Controller to save time, you can import more later from Assets Menu / Import.&lt;br /&gt;
## (Or choose everything to give yourself more to play with, but this blows the 10 minute thing!)&lt;br /&gt;
## In Hierarchy&amp;#039;s top left corner click Create and click Cube.&lt;br /&gt;
## Click the fourth tool in the top right or hit &amp;#039;R&amp;#039;.&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Resize&amp;#039;&amp;#039;&amp;#039; the cube wide and flat ( scale 50,1,50 ) as a ground by dragging the colored boxes on its sides.&lt;br /&gt;
## Click its name in the top right Inspfector. Name it &amp;quot;ground&amp;quot;.&lt;br /&gt;
## Drag a character controller from the Project view to the Scene view or Hierarchy.&lt;br /&gt;
## Position it above your ground cube.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Test It!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Click &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; button top center.&lt;br /&gt;
## Your game is now running! Walk around with WASD and look around with the mouse.&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Click PLAY&amp;#039;&amp;#039;&amp;#039; button again to stop.&lt;br /&gt;
## Remember: NEVER edit the game while it is playing or you&amp;#039;ll lose changes, always stop it first.&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; your Scene which is like your first level of your game and name it &amp;quot;level1&amp;quot;.&lt;br /&gt;
## You can make it awesome in the next steps!&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Decorate your scene!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Add point lights to make it look cool and more cubes to jump around on.&lt;br /&gt;
## Next we&amp;#039;ll learn how to add a script to stop yourself from falling infinitely off the edge.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create a lava cube to avoid falling infinitely&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Select the &amp;quot;ground&amp;quot; cube.&lt;br /&gt;
## Edit Menu / Duplicate it.&lt;br /&gt;
## Move the duplicate down.&lt;br /&gt;
## Rename the duplicate &amp;quot;lava&amp;quot;.&lt;br /&gt;
## Resize it to make it wider (100,1,100 scale) so it will catch you if you fall.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; and try falling off the edge. Notice it catches you but you can walk further and fall off the edge still.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; again to stop it.&lt;br /&gt;
## Click the &amp;quot;lava&amp;quot; cube to select it.&lt;br /&gt;
## In the Inspector, look for the Collider component.&lt;br /&gt;
## Check the &amp;quot;Is Trigger&amp;quot; checkbox.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; and try falling off the edge. Notice it you now fall right through the lava cube without stopping.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; again to stop the game.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create your first script code to avoid falling infinitely&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## In the Project pane, click Create / Javascript.&lt;br /&gt;
## Rename the javascript &amp;quot;Fall&amp;quot;. Click it once to make the name changeable.&lt;br /&gt;
## Drag the Fall script to the &amp;quot;lava&amp;quot; cube in the Scene, the Hierarchy or the bottom of its Inspector to attach it.&lt;br /&gt;
## Look in the inspector to confirm it is attached to the &amp;quot;lava&amp;quot; cube.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Edit the script to handle an OnTriggerEnter event:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Double-click the &amp;quot;Fall&amp;quot; javascript to edit it.&lt;br /&gt;
## Wait for MonoDevelop to load up.&lt;br /&gt;
## Double-click the &amp;quot;Fall&amp;quot; javascript again if it is not already open to edit it.&lt;br /&gt;
## Select all the &amp;quot;function Update&amp;quot; text and erase everything.&lt;br /&gt;
## Type just &amp;quot;trigger&amp;quot;. We are going to find out how triggers work by searching the API Reference.&lt;br /&gt;
## Make sure the cursor is on &amp;quot;trigger&amp;quot; or select the whole word.&lt;br /&gt;
## Click the Help Menu and choose Unity API Reference to look it up.&lt;br /&gt;
## You can do this faster by pressing Command-&amp;#039; (Mac) or Control-&amp;#039; (Windows).&lt;br /&gt;
## Look at the results that come up for something that looks related to triggering an event when a collider is touched.&lt;br /&gt;
## Click Result 2: OnTriggerEnter.&lt;br /&gt;
## Select and copy the example code.&lt;br /&gt;
## Switch back to MonoDevelop.&lt;br /&gt;
## Erase the word trigger.&lt;br /&gt;
## Paste the example code into Fall.js.&lt;br /&gt;
## Delete the whole &amp;quot;Destroy&amp;quot; line.&lt;br /&gt;
## Your code should look like this now:&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Change the Destroy line to reload the current level instead.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Select and delete the GameObject.Destroy line.&lt;br /&gt;
## Since we want to reload the same level, type &amp;quot;loadlevel&amp;quot; Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; loadlevel&amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
## Click &amp;quot;loadlevel&amp;quot; and click Help Menu / Unity API Reference to look it up.&lt;br /&gt;
## The first result is the one we want! Click Application.LoadLevel&lt;br /&gt;
## Copy the example code.&lt;br /&gt;
## Switch to MonoDevelop.&lt;br /&gt;
## Paste the example code on a blank line between the &amp;quot;function OnTriggerEnter {&amp;quot; and &amp;quot;}&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; Application.LoadLevel(&amp;quot;Highscore&amp;quot;); &amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
## Change Application.LoadLevel(&amp;quot;Highscore&amp;quot;); to &amp;quot;Application.LoadLevel(&amp;quot;level1&amp;quot;);&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; Application.LoadLevel(&amp;quot;level1&amp;quot;); &amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
## Save your code.&lt;br /&gt;
## Switch to Unity.&lt;br /&gt;
## Save your scene and name the scene file &amp;quot;level1&amp;quot;.&lt;br /&gt;
## If you get an error about Build Settings, make sure to add it by going to File/Build Settings/Add Current.&lt;br /&gt;
## Hit PLAY to test it.&lt;br /&gt;
## When you jump off the edge and hit the lava, do you get teleported back to the top?&lt;br /&gt;
## If so, you are now a game developer, congratulations!&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Expand your game level &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Make 10 cube platforms and position them with gaps so that you have to jump between the cubes.&lt;br /&gt;
## Arrange the cube gaps at increasing distances and difficulties until the last couple jumps are quite difficult but not impossible for you.&lt;br /&gt;
## Make sure that you always get teleported back to the start if you fall from anywhere in the level.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Make a portal that teleports between two levels.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Make a vertical wide narrow cube that looks like a door. (2.0, 3.0, 0.5 scale)&lt;br /&gt;
## Set it to IsTrigger = true (checked).&lt;br /&gt;
## Duplicate the Fall.js script.&lt;br /&gt;
## Rename the duplicate script Portal.js.&lt;br /&gt;
## Attach Portal.js to the door by dragging it onto the object or its name in the Hierarchy list part of the window.&lt;br /&gt;
## Double click Portal.js.&lt;br /&gt;
## Add a new line at the top that reads &amp;quot;var levelToLoad : String = &amp;quot;level2&amp;quot;;&lt;br /&gt;
## Replace &amp;quot;level1&amp;quot; with levelToLoad.&amp;lt;br&amp;gt;&lt;br /&gt;
Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
var levelToLoad : String = &amp;quot;level2&amp;quot;;&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; Application.LoadLevel( levelToLoad ); &amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Make level2 so your portal has somewhere to go:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
### File Menu / New Scene.&lt;br /&gt;
### Save the scene as &amp;quot;level2&amp;quot;.&lt;br /&gt;
### Repeat steps 1-9 to make yourself a new level with a new  or duplicate level1 as a starting template and rename the duplicate &amp;quot;level2&amp;quot;&lt;br /&gt;
### Make sure the name of the second level matches the name referred to in the portal.js script&lt;br /&gt;
### Load the first level again&lt;br /&gt;
### Play the first door&lt;br /&gt;
### If it takes you to the first level again, congrats!&lt;br /&gt;
&lt;br /&gt;
=== Code Hero 102: Coins ===&lt;br /&gt;
&lt;br /&gt;
Once you&amp;#039;ve made your first level have obstacles to avoid falling forever, it&amp;#039;s time to add some objectives for your players to seek out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Create a Coin.js script&lt;br /&gt;
* Create a World.js script&lt;br /&gt;
* Make Coin.js a trigger that sends an AddCoin message to World.js&lt;br /&gt;
* Make World.js increment a coin integer variable and display it OnGUI.&lt;br /&gt;
 &lt;br /&gt;
This is Unity 101 in 10 minutes and you are about to create your first video game!&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Download, install and open [[Unity]].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create your first project and your first playable game scene.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Create a new project by clicking File Menu / New Project &amp;#039;&amp;#039;(You can play with Angry Bots later!)&amp;#039;&amp;#039;&lt;br /&gt;
## Click the Character Controller checkbox to import it.&amp;#039;&amp;#039; (You can import more stuff later from Assets Menu / Import.)&amp;#039;&amp;#039;&lt;br /&gt;
## In Hierarchy&amp;#039;s top left corner click Create and click Cube. &amp;#039;&amp;#039;(You can also click Game Object menu/Create Other/Cube.)&amp;#039;&amp;#039;&lt;br /&gt;
## Click the fourth tool in the top right or hit &amp;#039;R&amp;#039;.&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Resize&amp;#039;&amp;#039;&amp;#039; the cube wide and flat ( scale 50,1,50 ) as a ground by dragging the colored boxes on its sides.&lt;br /&gt;
## Click its name in the top right Inspfector. Name it &amp;quot;ground&amp;quot;.&lt;br /&gt;
## Drag a character controller from the Project view to the Scene view or Hierarchy.&lt;br /&gt;
## Position it above your ground cube.&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Test It!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Click &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; button top center.&lt;br /&gt;
## Your game is now running! Walk around with WASD and look around with the mouse.&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Click PLAY&amp;#039;&amp;#039;&amp;#039; button again to stop.&lt;br /&gt;
## Remember: NEVER edit the game while it is playing or you&amp;#039;ll lose changes, always stop it first.&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; your Scene which is like your first level of your game and name it &amp;quot;level1&amp;quot;.&lt;br /&gt;
## You can make it awesome in the next steps!&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Decorate your scene!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Add point lights to make it look cool and more cubes to jump around on.&lt;br /&gt;
## Next we&amp;#039;ll learn how to add a script to stop yourself from falling infinitely off the edge.&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create a lava cube to avoid falling infinitely&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Select the &amp;quot;ground&amp;quot; cube.&lt;br /&gt;
## Edit Menu / Duplicate it.&lt;br /&gt;
## Move the duplicate down.&lt;br /&gt;
## Rename the duplicate &amp;quot;lava&amp;quot;.&lt;br /&gt;
## Resize it to make it wider (100,1,100 scale) so it will catch you if you fall.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; and try falling off the edge. Notice it catches you but you can walk further and fall off the edge still.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; again to stop it.&lt;br /&gt;
## Click the &amp;quot;lava&amp;quot; cube to select it.&lt;br /&gt;
## In the Inspector, look for the Collider component.&lt;br /&gt;
## Check the &amp;quot;Is Trigger&amp;quot; checkbox.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; and try falling off the edge. Notice it you now fall right through the lava cube without stopping.&lt;br /&gt;
## Hit &amp;#039;&amp;#039;&amp;#039;PLAY&amp;#039;&amp;#039;&amp;#039; again to stop the game.&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create your first script code to avoid falling infinitely&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## In the Project pane, click Create / Javascript.&lt;br /&gt;
## Rename the javascript &amp;quot;Teleport&amp;quot;. Click it once to make the name changeable.&lt;br /&gt;
## Drag the Teleport script to the &amp;quot;lava&amp;quot; cube in the Scene, the Hierarchy or the bottom of its Inspector to attach it.&lt;br /&gt;
## Look in the inspector to confirm it is attached to the &amp;quot;lava&amp;quot; cube.&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Edit the script to handle an OnTriggerEnter event:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Double-click the &amp;quot;Teleport&amp;quot; javascript to edit it.&lt;br /&gt;
## Wait for MonoDevelop to load up.&lt;br /&gt;
## Double-click the &amp;quot;Teleport&amp;quot; javascript again if it is not already open to edit it.&lt;br /&gt;
## Select all the &amp;quot;function Update&amp;quot; text and erase everything.&lt;br /&gt;
## Type just &amp;quot;trigger&amp;quot;. We are going to find out how triggers work by searching the API Reference.&lt;br /&gt;
## Make sure the cursor is on &amp;quot;trigger&amp;quot; or select the whole word.&lt;br /&gt;
## Click the Help Menu and choose Unity API Reference to look it up.&lt;br /&gt;
## You can do this faster by pressing Command-&amp;#039; (Mac) or Control-&amp;#039; (Windows).&lt;br /&gt;
## Look at the results that come up for something that looks related to triggering an event when a collider is touched.&lt;br /&gt;
## Click Result 2: OnTriggerEnter.&lt;br /&gt;
## Select and copy the example code.&lt;br /&gt;
## Switch back to MonoDevelop.&lt;br /&gt;
## Erase the word trigger.&lt;br /&gt;
## Paste the example code into Teleport.js.&lt;br /&gt;
## Delete the whole &amp;quot;Destroy&amp;quot; line.&lt;br /&gt;
## Your code should look like this now: function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Change the Destroy line to reload the current level instead.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Select and delete the GameObject.Destroy line.&lt;br /&gt;
## Since we want to reload the same level, type &amp;quot;loadlevel&amp;quot; Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; loadlevel&amp;lt;br&amp;gt;&lt;br /&gt;
}&amp;lt;br&amp;gt;&lt;br /&gt;
## Click &amp;quot;loadlevel&amp;quot; and click Help Menu / Unity API Reference to look it up.&lt;br /&gt;
## The first result is the one we want! Click Application.LoadLevel&lt;br /&gt;
## Copy the example code.&lt;br /&gt;
## Switch to MonoDevelop.&lt;br /&gt;
## Paste the example code on a blank line between the &amp;quot;function OnTriggerEnter {&amp;quot; and &amp;quot;}&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; Application.LoadLevel(&amp;quot;Highscore&amp;quot;); &amp;lt;br&amp;gt;&lt;br /&gt;
}&amp;lt;br&amp;gt;&lt;br /&gt;
## Change Application.LoadLevel(&amp;quot;Highscore&amp;quot;); to &amp;quot;Application.LoadLevel(&amp;quot;level1&amp;quot;);&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; Application.LoadLevel(&amp;quot;level1&amp;quot;); &amp;lt;br&amp;gt;&lt;br /&gt;
}&amp;lt;br&amp;gt;&lt;br /&gt;
## Save your code.&lt;br /&gt;
## Switch to Unity.&lt;br /&gt;
## Save your scene and name the scene file &amp;quot;level1&amp;quot;.&lt;br /&gt;
## If you get an error about Build Settings, make sure to add it by going to File/Build Settings/Add Current.&lt;br /&gt;
## Hit PLAY to test it.&lt;br /&gt;
## When you jump off the edge and hit the lava, do you get teleported back to the top?&lt;br /&gt;
## If so, you are now a game developer, congratulations!&lt;br /&gt;
#&lt;br /&gt;
 &lt;br /&gt;
=== Here&amp;#039;s what your first level should look like: ===&lt;br /&gt;
 &lt;br /&gt;
[[Image:Unity101LavaTriggerScript.jpg]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Congratulations! You&amp;#039;re ready for the next tutorial: ==&lt;br /&gt;
 &lt;br /&gt;
== Part 2: Coin &amp;amp; World Components ==&lt;br /&gt;
 &lt;br /&gt;
=== More Ways To Make Your First Level Fun ===&lt;br /&gt;
 &lt;br /&gt;
Now that you have a basic platforming game level that you can jump around in and try not to fall off the edge, it is time to make your level exciting and fun.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Make your lava red&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## In &amp;#039;&amp;#039;&amp;#039;Project&amp;#039;&amp;#039;&amp;#039; panel, click &amp;#039;&amp;#039;&amp;#039;Assets&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
## Click &amp;#039;&amp;#039;&amp;#039;Create&amp;#039;&amp;#039;&amp;#039; and click &amp;#039;&amp;#039;&amp;#039;Material&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
## Type the name &amp;quot;&amp;#039;&amp;#039;&amp;#039;LavaMaterial&amp;#039;&amp;#039;&amp;#039;&amp;quot; and hit return.&lt;br /&gt;
## In the &amp;#039;&amp;#039;&amp;#039;Inspector&amp;#039;&amp;#039;&amp;#039; panel, there&amp;#039;s a white box to the right of &amp;#039;&amp;#039;&amp;#039;Main Color&amp;#039;&amp;#039;&amp;#039;. Click it.&lt;br /&gt;
## In the &amp;#039;&amp;#039;&amp;#039;Color&amp;#039;&amp;#039;&amp;#039; panel that pops up, pick a reddish color and close the Color panel.&lt;br /&gt;
## In &amp;#039;&amp;#039;&amp;#039;Project&amp;#039;&amp;#039;&amp;#039; panel, drag the LavaMaterial into the &amp;#039;&amp;#039;&amp;#039;Hierarchy&amp;#039;&amp;#039;&amp;#039; panel to drop it on the &amp;#039;&amp;#039;&amp;#039;Lava &amp;#039;&amp;#039;&amp;#039;object.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Expand your game level&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Make 10 cube platforms and position them with gaps so that you have to jump between the cubes.&lt;br /&gt;
## Arrange the cube gaps at increasing distances and difficulties until the last couple jumps are quite difficult but not impossible for you.&lt;br /&gt;
## Make sure that you always get teleported back to the start if you fall from anywhere in the level.&lt;br /&gt;
#&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Make a portal that teleports between two levels.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Make a vertical wide narrow cube that looks like a door. (2.0, 3.0, 0.5 scale)&lt;br /&gt;
## Set it to IsTrigger = true (checked).&lt;br /&gt;
## Duplicate the Teleport.js script.&lt;br /&gt;
## Rename the duplicate script Portal.js.&lt;br /&gt;
## Attach Portal.js to the door by dragging it onto the object or its name in the Hierarchy list part of the window.&lt;br /&gt;
## Double click Portal.js.&lt;br /&gt;
## Add a new line at the top that reads &amp;quot;var levelToLoad : String = &amp;quot;level2&amp;quot;;&lt;br /&gt;
## Replace &amp;quot;level1&amp;quot; with levelToLoad.&amp;lt;br&amp;gt;&lt;br /&gt;
Your code should look like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
var levelToLoad : String = &amp;quot;level2&amp;quot;;&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter( other : Collider ) {&amp;lt;br&amp;gt; Application.LoadLevel( levelToLoad ); &amp;lt;br&amp;gt;&lt;br /&gt;
}&amp;lt;br&amp;gt;&lt;br /&gt;
## &amp;#039;&amp;#039;&amp;#039;Make level2 so your portal has somewhere to go:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
### &amp;#039;&amp;#039;&amp;#039;File Menu / New Scene&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
### &amp;#039;&amp;#039;&amp;#039;File menu / Save&amp;#039;&amp;#039;&amp;#039; the scene as &amp;#039;&amp;#039;&amp;#039;&amp;quot;level2&amp;quot;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
### Repeat steps 1-9 to make yourself a new level with a new or duplicate &amp;#039;&amp;#039;&amp;#039;&amp;quot;level1&amp;quot;&amp;#039;&amp;#039;&amp;#039; as a starting template and rename the duplicate &amp;#039;&amp;#039;&amp;#039;&amp;quot;level2&amp;quot;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
### Make sure the name of the second level matches the name referred to in the &amp;#039;&amp;#039;&amp;#039;Portal.js&amp;#039;&amp;#039;&amp;#039; script.&lt;br /&gt;
### Add each of the levels in your game to the Build Settings list by clicking &amp;#039;&amp;#039;&amp;#039;File Menu / Build Settings...&amp;#039;&amp;#039;&amp;#039; and clicking&amp;#039;&amp;#039;&amp;#039; Add Current &amp;#039;&amp;#039;&amp;#039;after loading each one&amp;#039;&amp;#039;&amp;#039;.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
### Load the first level again.&lt;br /&gt;
### Play and walk into the first door.&lt;br /&gt;
### If it takes you to the first level again, congrats!&lt;br /&gt;
### &amp;#039;&amp;#039;&amp;#039;Make the door white:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#### In &amp;#039;&amp;#039;&amp;#039;Project&amp;#039;&amp;#039;&amp;#039; Panel, click &amp;#039;&amp;#039;&amp;#039;Create&amp;#039;&amp;#039;&amp;#039; / &amp;#039;&amp;#039;&amp;#039;Material&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
#### I&lt;br /&gt;
##&lt;br /&gt;
#&lt;br /&gt;
 &lt;br /&gt;
The expanded Telport script which can go between levels or reload the same level:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
#pragma strict&amp;lt;br&amp;gt;&lt;br /&gt;
var levelToLoad : String = &amp;quot;&amp;quot;;&amp;lt;br&amp;gt;&lt;br /&gt;
var reload : boolean = false;&amp;lt;br&amp;gt;&lt;br /&gt;
function OnTriggerEnter ( other : Collider ) {&amp;lt;br&amp;gt; if ( reload )&amp;lt;br&amp;gt; {&amp;lt;br&amp;gt; Application.LoadLevel(Application.loadedLevel);&amp;lt;br&amp;gt; }&amp;lt;br&amp;gt; if ( levelToLoad != &amp;quot;&amp;quot; )&amp;lt;br&amp;gt; {&amp;lt;br&amp;gt; Application.LoadLevel(levelToLoad);&amp;lt;br&amp;gt; }&amp;lt;br&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Once you expand your level with more cubes for walls and jumping plus a portal to the next level, it might look like something like this:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
[[Image:platformingCubes.png]]&lt;/div&gt;</summary>
		<author><name>Lxpk</name></author>
	</entry>
</feed>