<?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: Tutorial: Make a Vertical Shooter in AS3 &#8211; Part 4</title>
	<atom:link href="http://www.mrsunstudios.com/2008/08/tutorial-make-a-vertical-shooter-in-as3-part-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-4/</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 13 Jul 2010 09:44:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tyler</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-4/#comment-1198</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Wed, 24 Mar 2010 21:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=625#comment-1198</guid>
		<description>Great tutorial thank you for doing it. I understand the basic movement in the first part but i just don&#039;t know what everything else means and why you put it there.</description>
		<content:encoded><![CDATA[<p>Great tutorial thank you for doing it. I understand the basic movement in the first part but i just don&#8217;t know what everything else means and why you put it there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Persson</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-4/#comment-786</link>
		<dc:creator>Jonathan Persson</dc:creator>
		<pubDate>Wed, 06 May 2009 15:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=625#comment-786</guid>
		<description>Hey!
Thank you for this (atleast this far ;P) wonderful tutorial. It&#039;s just that i got a little problem. If i try to run the game (after i added the trace and the hitTestObject thing) i only get hit if i shoot at the same time as i am hit, with mcMain... And if i just stay still with mcMain, the bullets don&#039;t hit, they go straight through mcMain.</description>
		<content:encoded><![CDATA[<p>Hey!<br />
Thank you for this (atleast this far ;P) wonderful tutorial. It&#8217;s just that i got a little problem. If i try to run the game (after i added the trace and the hitTestObject thing) i only get hit if i shoot at the same time as i am hit, with mcMain&#8230; And if i just stay still with mcMain, the bullets don&#8217;t hit, they go straight through mcMain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr Sun</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-4/#comment-127</link>
		<dc:creator>Mr Sun</dc:creator>
		<pubDate>Mon, 25 Aug 2008 12:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=625#comment-127</guid>
		<description>Hey Danilo. I know the hardest part of learning and teaching ActionScript or any kind of programming language is to learn how the code actually works. I&#039;ll try to explain it as best I can.

In ActionScript, you can assign certain MovieClips that are already placed on stage, a variable name. For example, if you put a MovieClip with a instance name of &lt;code&gt;mcThing&lt;/code&gt; onto the stage without using any code, you could give it a variable name in code like so:

&lt;code&gt;var thingVariable:MovieClip = mcThing;&lt;/code&gt;

This way, you can access the MovieClip&#039;s properties by using either &lt;code&gt;thingVariable&lt;/code&gt; or &lt;code&gt;mcThing&lt;/code&gt;. This is sort of how the &lt;code&gt;bulletTarget&lt;/code&gt; works, except more dynamically.

In our for loop, we define the limit as &lt;code&gt;i&lt;_root.bulletContainer.numChildren&lt;/code&gt;. This means that this loop will run through for every single MovieClip that is in the &lt;code&gt;bulletContainer&lt;/code&gt;, which would just be for all of the bullets.

&lt;code&gt;getChildAt()&lt;/code&gt; simply means that &lt;code&gt;bulletTarget&lt;/code&gt; will be the MovieClip that is at the certain index level as the &lt;code&gt;i&lt;/code&gt; variable. Index level isn&#039;t too important, it&#039;s similar to &lt;code&gt;depth&lt;/code&gt; in AS2.

Hopefully, this is a bit of help to you. Good luck on learning ActionScript!</description>
		<content:encoded><![CDATA[<p>Hey Danilo. I know the hardest part of learning and teaching ActionScript or any kind of programming language is to learn how the code actually works. I&#8217;ll try to explain it as best I can.</p>
<p>In ActionScript, you can assign certain MovieClips that are already placed on stage, a variable name. For example, if you put a MovieClip with a instance name of <code>mcThing</code> onto the stage without using any code, you could give it a variable name in code like so:</p>
<p><code>var thingVariable:MovieClip = mcThing;</code></p>
<p>This way, you can access the MovieClip&#8217;s properties by using either <code>thingVariable</code> or <code>mcThing</code>. This is sort of how the <code>bulletTarget</code> works, except more dynamically.</p>
<p>In our for loop, we define the limit as <code>i&lt;_root.bulletContainer.numChildren</code>. This means that this loop will run through for every single MovieClip that is in the <code>bulletContainer</code>, which would just be for all of the bullets.</p>
<p><code>getChildAt()</code> simply means that <code>bulletTarget</code> will be the MovieClip that is at the certain index level as the <code>i</code> variable. Index level isn&#8217;t too important, it&#8217;s similar to <code>depth</code> in AS2.</p>
<p>Hopefully, this is a bit of help to you. Good luck on learning ActionScript!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danilo</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-4/#comment-125</link>
		<dc:creator>Danilo</dc:creator>
		<pubDate>Mon, 25 Aug 2008 04:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=625#comment-125</guid>
		<description>Hi, I&#039;ve been learning AS3 for a while, and the most important thing I could never figure out is how to code bullets and those things, mainly because there are always many bullets and I don&#039;t know how to code them so they hit the enemy.

I see you handled this creating the &quot;bulletContainer&quot; var and using the loop &quot;for(var i:int = 0;i&lt;_root.bulletContainer.numChildren;i++)&quot; 
My problem is, I know this works, but I don&#039;t know how, I mean, I don&#039;t know how the &quot;bulletTarget&quot; var works, so it would be appreciated if you could explain this.

Anyway, thanks a lot for all the help :)</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve been learning AS3 for a while, and the most important thing I could never figure out is how to code bullets and those things, mainly because there are always many bullets and I don&#8217;t know how to code them so they hit the enemy.</p>
<p>I see you handled this creating the &#8220;bulletContainer&#8221; var and using the loop &#8220;for(var i:int = 0;i&lt;_root.bulletContainer.numChildren;i++)&#8221;<br />
My problem is, I know this works, but I don&#8217;t know how, I mean, I don&#8217;t know how the &#8220;bulletTarget&#8221; var works, so it would be appreciated if you could explain this.</p>
<p>Anyway, thanks a lot for all the help <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

