<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create a Flash game like Metro Siberia Underground &#8211; Part 2</title>
	<atom:link href="http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Sat, 11 Feb 2012 05:27:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Martin</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-247475</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 08 Aug 2008 16:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-247475</guid>
		<description>Please can someone explain line 55 for me, I read the line rider tutorial page but I still don&#039;t understand everything thats going on here, thanks.

I assume that this._x+28 refers to the front point of the triangle (ship)and the bit that follows: *Math.cos(angle) works out a straight horizontal hittest line. Im just guessing at this point though.

if ((this._y&gt; 400) or tunnel_movie.hitTest(this._x+28*Math.cos(angle), this._y+28*Math.sin(angle), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle+Math.PI/2), this._y+8*Math.sin(angle+Math.PI/2), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle-Math.PI/2), this._y+8*Math.sin(angle-Math.PI/2), true)) {</description>
		<content:encoded><![CDATA[<p>Please can someone explain line 55 for me, I read the line rider tutorial page but I still don&#8217;t understand everything thats going on here, thanks.</p>
<p>I assume that this._x+28 refers to the front point of the triangle (ship)and the bit that follows: *Math.cos(angle) works out a straight horizontal hittest line. Im just guessing at this point though.</p>
<p>if ((this._y&gt; 400) or tunnel_movie.hitTest(this._x+28*Math.cos(angle), this._y+28*Math.sin(angle), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle+Math.PI/2), this._y+8*Math.sin(angle+Math.PI/2), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle-Math.PI/2), this._y+8*Math.sin(angle-Math.PI/2), true)) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roboman</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-108213</link>
		<dc:creator>roboman</dc:creator>
		<pubDate>Sat, 05 Apr 2008 04:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-108213</guid>
		<description>why can&#039;t i get the gameover to work?

game = true
{
if ((this._y &gt; 400) or tunnel_movie.hitTest(this._x+28*Math.cos(angle), this._y+28*Math.sin(angle), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle+Math.PI/2), this._y+8*Math.sin(angle+Math.PI/2), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle-Math.PI/2), this._y+8*Math.sin(angle-Math.PI/2), true)) {
		game = false;
		tunnel_movie.removeMovieClip();
		}
};

{
	if (game = false) {
		gotoAndPlay (&quot;gameover&quot;,1);
	} else {
		gotoAndStop (&quot;game&quot;,1);
	}
}
stop();</description>
		<content:encoded><![CDATA[<p>why can&#8217;t i get the gameover to work?</p>
<p>game = true<br />
{<br />
if ((this._y &gt; 400) or tunnel_movie.hitTest(this._x+28*Math.cos(angle), this._y+28*Math.sin(angle), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle+Math.PI/2), this._y+8*Math.sin(angle+Math.PI/2), true) or tunnel_movie.hitTest(this._x+8*Math.cos(angle-Math.PI/2), this._y+8*Math.sin(angle-Math.PI/2), true)) {<br />
		game = false;<br />
		tunnel_movie.removeMovieClip();<br />
		}<br />
};</p>
<p>{<br />
	if (game = false) {<br />
		gotoAndPlay (&#8220;gameover&#8221;,1);<br />
	} else {<br />
		gotoAndStop (&#8220;game&#8221;,1);<br />
	}<br />
}<br />
stop();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Flash game like Metro Siberia Underground - Part 4 : Emanuele Feronato - italian geek and PROgrammer</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-83169</link>
		<dc:creator>Create a Flash game like Metro Siberia Underground - Part 4 : Emanuele Feronato - italian geek and PROgrammer</dc:creator>
		<pubDate>Wed, 13 Feb 2008 16:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-83169</guid>
		<description>[...] tutorial: available parts 1, 2, 3, 4 [...]</description>
		<content:encoded><![CDATA[<p>[...] tutorial: available parts 1, 2, 3, 4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Flash game like Metro Siberia Underground - Part 5 : Emanuele Feronato - italian geek and PROgrammer</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-83165</link>
		<dc:creator>Create a Flash game like Metro Siberia Underground - Part 5 : Emanuele Feronato - italian geek and PROgrammer</dc:creator>
		<pubDate>Wed, 13 Feb 2008 16:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-83165</guid>
		<description>[...] tutorial: available parts 1, 2, 3, 4 [...]</description>
		<content:encoded><![CDATA[<p>[...] tutorial: available parts 1, 2, 3, 4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Flash game like Metro Siberia Underground : Emanuele Feronato - italian geek and PROgrammer</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-83164</link>
		<dc:creator>Create a Flash game like Metro Siberia Underground : Emanuele Feronato - italian geek and PROgrammer</dc:creator>
		<pubDate>Wed, 13 Feb 2008 16:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-83164</guid>
		<description>[...] tutorial: available parts 1, 2, 3, 4 [...]</description>
		<content:encoded><![CDATA[<p>[...] tutorial: available parts 1, 2, 3, 4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skychase2rebirth</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-81677</link>
		<dc:creator>Skychase2rebirth</dc:creator>
		<pubDate>Sat, 09 Feb 2008 23:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-81677</guid>
		<description>i have a problem, when i go down too much, even if i&#039;m always on the scene, it do like if i&#039;d touch a wall</description>
		<content:encoded><![CDATA[<p>i have a problem, when i go down too much, even if i&#8217;m always on the scene, it do like if i&#8217;d touch a wall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Flash game like Metro Siberia Underground - Part 3 : Emanuele Feronato - italian geek and PROgrammer</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-79932</link>
		<dc:creator>Create a Flash game like Metro Siberia Underground - Part 3 : Emanuele Feronato - italian geek and PROgrammer</dc:creator>
		<pubDate>Tue, 05 Feb 2008 15:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-79932</guid>
		<description>[...] suggest to read part 1 and 2 before reading this [...]</description>
		<content:encoded><![CDATA[<p>[...] suggest to read part 1 and 2 before reading this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orava</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-77688</link>
		<dc:creator>Orava</dc:creator>
		<pubDate>Thu, 31 Jan 2008 09:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-77688</guid>
		<description>So, no one knows how to do a distancemeter :(? i&#039;d really need one....</description>
		<content:encoded><![CDATA[<p>So, no one knows how to do a distancemeter :(? i&#8217;d really need one&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-77402</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Wed, 30 Jan 2008 18:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-77402</guid>
		<description>hey i have this code:
level=1
dupMovie = function () { 
	for (i=0; i&lt;=10*level; i++) { 
		alien.duplicateMovieClip(&quot;alien&quot;+i, i, {_x:Math.random()*600, _y:Math.random()*450}); 
	}
	for (i=0; i&lt;10; i++) { 
		robot.duplicateMovieClip(&quot;robot&quot;+i, i+10000, {_x:Math.random()*600, _y:Math.random()*450}); 
	}
	for (i=0; i&lt;10; i++) { 
		ninja.duplicateMovieClip(&quot;ninja&quot;+i, i+20000, {_x:Math.random()*600, _y:Math.random()*450}); 
	}
}; 
dupMovie();

but when i run it it doesnt increase when the level goes up
WHY???</description>
		<content:encoded><![CDATA[<p>hey i have this code:<br />
level=1<br />
dupMovie = function () {<br />
	for (i=0; i&lt;=10*level; i++) {<br />
		alien.duplicateMovieClip(&#8220;alien&#8221;+i, i, {_x:Math.random()*600, _y:Math.random()*450});<br />
	}<br />
	for (i=0; i&lt;10; i++) {<br />
		robot.duplicateMovieClip(&#8220;robot&#8221;+i, i+10000, {_x:Math.random()*600, _y:Math.random()*450});<br />
	}<br />
	for (i=0; i&lt;10; i++) {<br />
		ninja.duplicateMovieClip(&#8220;ninja&#8221;+i, i+20000, {_x:Math.random()*600, _y:Math.random()*450});<br />
	}<br />
};<br />
dupMovie();</p>
<p>but when i run it it doesnt increase when the level goes up<br />
WHY???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-77241</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Wed, 30 Jan 2008 07:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/01/25/create-a-flash-game-like-metro-siberia-underground-part-2/#comment-77241</guid>
		<description>hiya!

thanks for these tutorials, i used some of the source to make this game here, check it out!

http://galacticflashgames.com/games/bumblebee.php

i would really appreciate some comments on it.

thanks again for the tutes!</description>
		<content:encoded><![CDATA[<p>hiya!</p>
<p>thanks for these tutorials, i used some of the source to make this game here, check it out!</p>
<p><a href="http://galacticflashgames.com/games/bumblebee.php" rel="nofollow">http://galacticflashgames.com/games/bumblebee.php</a></p>
<p>i would really appreciate some comments on it.</p>
<p>thanks again for the tutes!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.011 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 14:02:53 -->
