<?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 AS2 &#8211; Part 2</title>
	<atom:link href="http://www.mrsunstudios.com/2009/01/tutorial-make-a-vertical-shooter-in-as2-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/</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: Will</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1280</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Sat, 29 May 2010 12:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1280</guid>
		<description>When you click &#039;Export to Actionscript&#039; when making the bullet, set the identifier name as mcBullet. that is
how it got it to work.</description>
		<content:encoded><![CDATA[<p>When you click &#8216;Export to Actionscript&#8217; when making the bullet, set the identifier name as mcBullet. that is<br />
how it got it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TP</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1263</link>
		<dc:creator>TP</dc:creator>
		<pubDate>Wed, 12 May 2010 15:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1263</guid>
		<description>I am confused on where to put the onEnterFrame function:codes.... can someone tell me?</description>
		<content:encoded><![CDATA[<p>I am confused on where to put the onEnterFrame function:codes&#8230;. can someone tell me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helper</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1223</link>
		<dc:creator>Helper</dc:creator>
		<pubDate>Sat, 17 Apr 2010 15:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1223</guid>
		<description>I see that alot of you are having problems with the code.  Heres how it should look:


var mainSpeed = 5;
var cTime = 0;
var cLimit = 12;
var shootAllow = false;
onEnterFrame = function ()
{
    if (Key.isDown(37) &#124;&#124; Key.isDown(65))
    {
        mcMain._x = mcMain._x - mainSpeed;
    } // end if
    if (Key.isDown(38) &#124;&#124; Key.isDown(87))
    {
        mcMain._y = mcMain._y - mainSpeed;
    } // end if
    if (Key.isDown(39) &#124;&#124; Key.isDown(68))
    {
        mcMain._x = mcMain._x + mainSpeed;
    } // end if
    if (Key.isDown(40) &#124;&#124; Key.isDown(83))
    {
        mcMain._y = mcMain._y + mainSpeed;
    } // end if
    if (Key.isDown(32) &amp;&amp; shootAllow)
    {
        var _loc3 = Math.random();
        _root.attachMovie(&quot;mcBullet&quot;, &quot;Bullet&quot; + _loc3, _root.getNextHighestDepth());
        _root[&quot;Bullet&quot; + _loc3]._x = mcMain._x + mcMain._width / 2 - _root[&quot;Bullet&quot; + _loc3]._width / 2;
        _root[&quot;Bullet&quot; + _loc3]._y = mcMain._y;
        _root[&quot;Bullet&quot; + _loc3].onEnterFrame = function ()
        {
            this._y = this._y - 10;
            if (this._y &lt; -1 * this._height)
            {
                this.removeMovieClip();
            } // end if
        };
        shootAllow = false;
    } // end if
    ++cTime;
    if (cTime == cLimit)
    {
        shootAllow = true;
        cTime = 0;
    } // end if
};</description>
		<content:encoded><![CDATA[<p>I see that alot of you are having problems with the code.  Heres how it should look:</p>
<p>var mainSpeed = 5;<br />
var cTime = 0;<br />
var cLimit = 12;<br />
var shootAllow = false;<br />
onEnterFrame = function ()<br />
{<br />
    if (Key.isDown(37) || Key.isDown(65))<br />
    {<br />
        mcMain._x = mcMain._x &#8211; mainSpeed;<br />
    } // end if<br />
    if (Key.isDown(38) || Key.isDown(87))<br />
    {<br />
        mcMain._y = mcMain._y &#8211; mainSpeed;<br />
    } // end if<br />
    if (Key.isDown(39) || Key.isDown(68))<br />
    {<br />
        mcMain._x = mcMain._x + mainSpeed;<br />
    } // end if<br />
    if (Key.isDown(40) || Key.isDown(83))<br />
    {<br />
        mcMain._y = mcMain._y + mainSpeed;<br />
    } // end if<br />
    if (Key.isDown(32) &amp;&amp; shootAllow)<br />
    {<br />
        var _loc3 = Math.random();<br />
        _root.attachMovie(&#8220;mcBullet&#8221;, &#8220;Bullet&#8221; + _loc3, _root.getNextHighestDepth());<br />
        _root["Bullet" + _loc3]._x = mcMain._x + mcMain._width / 2 &#8211; _root["Bullet" + _loc3]._width / 2;<br />
        _root["Bullet" + _loc3]._y = mcMain._y;<br />
        _root["Bullet" + _loc3].onEnterFrame = function ()<br />
        {<br />
            this._y = this._y &#8211; 10;<br />
            if (this._y &lt; -1 * this._height)<br />
            {<br />
                this.removeMovieClip();<br />
            } // end if<br />
        };<br />
        shootAllow = false;<br />
    } // end if<br />
    ++cTime;<br />
    if (cTime == cLimit)<br />
    {<br />
        shootAllow = true;<br />
        cTime = 0;<br />
    } // end if<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1164</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 04 Mar 2010 12:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1164</guid>
		<description>hey, where i must put the last code?</description>
		<content:encoded><![CDATA[<p>hey, where i must put the last code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greeny</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1162</link>
		<dc:creator>Greeny</dc:creator>
		<pubDate>Fri, 26 Feb 2010 02:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1162</guid>
		<description>It isn&#039;t working, either I do not know what I am doing, or the coding is all wrong</description>
		<content:encoded><![CDATA[<p>It isn&#8217;t working, either I do not know what I am doing, or the coding is all wrong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarcusD</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1139</link>
		<dc:creator>MarcusD</dc:creator>
		<pubDate>Sun, 31 Jan 2010 01:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1139</guid>
		<description>Use select tool and highlight the bullet. Then press F9 and do the ....ing tutorial</description>
		<content:encoded><![CDATA[<p>Use select tool and highlight the bullet. Then press F9 and do the &#8230;.ing tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1109</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 06 Jan 2010 13:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1109</guid>
		<description>mine works, but it will only shoot one bullet, when i press space again, it deletes the previous bullet and shoots a new one...</description>
		<content:encoded><![CDATA[<p>mine works, but it will only shoot one bullet, when i press space again, it deletes the previous bullet and shoots a new one&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1070</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sat, 28 Nov 2009 00:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1070</guid>
		<description>I dont have the linkage thingy what should i do!?!?!?!</description>
		<content:encoded><![CDATA[<p>I dont have the linkage thingy what should i do!?!?!?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryan451</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1065</link>
		<dc:creator>bryan451</dc:creator>
		<pubDate>Mon, 23 Nov 2009 03:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1065</guid>
		<description>who ever made this tut is a dumb ass they need to be more detailed! where do i put the codes?!?!?!?!?!</description>
		<content:encoded><![CDATA[<p>who ever made this tut is a dumb ass they need to be more detailed! where do i put the codes?!?!?!?!?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as2-part-2/#comment-1064</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Sat, 21 Nov 2009 21:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1116#comment-1064</guid>
		<description>What exactly is _root[]? I&#039;d Google it but Google ignores braces.</description>
		<content:encoded><![CDATA[<p>What exactly is _root[]? I&#8217;d Google it but Google ignores braces.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

