<?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 6</title>
	<atom:link href="http://www.mrsunstudios.com/2008/08/tutorial-make-a-vertical-shooter-in-as3-part-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/</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: Chris</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1304</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 16 Jun 2010 17:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1304</guid>
		<description>can you expand this tutorial because im really strugling on different thing like adding upgrages, levels and even just a high score. other than that it has helped alot :)</description>
		<content:encoded><![CDATA[<p>can you expand this tutorial because im really strugling on different thing like adding upgrages, levels and even just a high score. other than that it has helped alot <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roc</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1287</link>
		<dc:creator>Roc</dc:creator>
		<pubDate>Tue, 01 Jun 2010 22:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1287</guid>
		<description>Hi mr. Sun.  Can you show us how to make the enemies shoot bullets that can kill the hero?  And can you also show us how to program a boss at the end of the level?  Where we can display how much life he has left? And maybe make him blink red when we shoot him?  Thanks!</description>
		<content:encoded><![CDATA[<p>Hi mr. Sun.  Can you show us how to make the enemies shoot bullets that can kill the hero?  And can you also show us how to program a boss at the end of the level?  Where we can display how much life he has left? And maybe make him blink red when we shoot him?  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roc</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1286</link>
		<dc:creator>Roc</dc:creator>
		<pubDate>Tue, 01 Jun 2010 22:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1286</guid>
		<description>Hey Mr. Sun.. You are all that is MAN in programming flash games!  Can you, by any chance, program a boss at the end of the level?  Show us how to make is so it displays how much life he has left, and make him blink red when the hero shoots him?  That would be awesome.  Thanks.</description>
		<content:encoded><![CDATA[<p>Hey Mr. Sun.. You are all that is MAN in programming flash games!  Can you, by any chance, program a boss at the end of the level?  Show us how to make is so it displays how much life he has left, and make him blink red when the hero shoots him?  That would be awesome.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahaslam</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1262</link>
		<dc:creator>ahaslam</dc:creator>
		<pubDate>Tue, 11 May 2010 23:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1262</guid>
		<description>&quot;I hope you had fun making it!&quot;
I sure did, I learnt a bit too. Thank you. :)</description>
		<content:encoded><![CDATA[<p>&#8220;I hope you had fun making it!&#8221;<br />
I sure did, I learnt a bit too. Thank you. <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: d4rcr3st</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1204</link>
		<dc:creator>d4rcr3st</dc:creator>
		<pubDate>Wed, 31 Mar 2010 21:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1204</guid>
		<description>Thanks for this tutorial Mr.Sun. It is fantastic!

However I have one problem. I have created a stop motion movie clip where the squares (Enemy) explodes. The movie clip is called Explosion and it&#039;s linkage is called Explosion too.

Where do I need to put the script? I tried doing it in the Enemy.swf file where you hitTestObject. Maybe that&#039;s the wrong place or my scripting is wrong. But could you help me please?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial Mr.Sun. It is fantastic!</p>
<p>However I have one problem. I have created a stop motion movie clip where the squares (Enemy) explodes. The movie clip is called Explosion and it&#8217;s linkage is called Explosion too.</p>
<p>Where do I need to put the script? I tried doing it in the Enemy.swf file where you hitTestObject. Maybe that&#8217;s the wrong place or my scripting is wrong. But could you help me please?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomTom</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1168</link>
		<dc:creator>TomTom</dc:creator>
		<pubDate>Sat, 06 Mar 2010 22:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1168</guid>
		<description>Nice Tutorial, the healthbar from Seth works just fine. I managed to get a background sound play and a short &quot;boom&quot;, when an enemy is hit. 
I&#039;m still adding stuff, right now I&#039;m wondering how you could play a little clip (e.g. explosion) when you die or an enemy is destroyed.

Thanks again :D</description>
		<content:encoded><![CDATA[<p>Nice Tutorial, the healthbar from Seth works just fine. I managed to get a background sound play and a short &#8220;boom&#8221;, when an enemy is hit.<br />
I&#8217;m still adding stuff, right now I&#8217;m wondering how you could play a little clip (e.g. explosion) when you die or an enemy is destroyed.</p>
<p>Thanks again <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimmy</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-1020</link>
		<dc:creator>jimmy</dc:creator>
		<pubDate>Mon, 12 Oct 2009 14:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-1020</guid>
		<description>Hey, first of all i want to say these are great tutorials!

I have a question: Is it possible to make a game like this, without the use of external actionscript files?
I am a first year student and got the assignment to make a game in AS3. 

But the problem is the action script should exclusively be on the upper frame. So if you open the actions window, only that script should be visible. Since im looking for tutorials, i noticed most of them use external actionscript.. So that quite a problem in my case..

Hope that you can help me out someway..

Thanks in advance! grts Jim.</description>
		<content:encoded><![CDATA[<p>Hey, first of all i want to say these are great tutorials!</p>
<p>I have a question: Is it possible to make a game like this, without the use of external actionscript files?<br />
I am a first year student and got the assignment to make a game in AS3. </p>
<p>But the problem is the action script should exclusively be on the upper frame. So if you open the actions window, only that script should be visible. Since im looking for tutorials, i noticed most of them use external actionscript.. So that quite a problem in my case..</p>
<p>Hope that you can help me out someway..</p>
<p>Thanks in advance! grts Jim.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-869</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Thu, 25 Jun 2009 16:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-869</guid>
		<description>Some handy techniques here (e.g hitTest container mc), thanks alot.</description>
		<content:encoded><![CDATA[<p>Some handy techniques here (e.g hitTest container mc), thanks alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-854</link>
		<dc:creator>Ross</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-854</guid>
		<description>I think its safe to say... AS2 was sooo much easier lol</description>
		<content:encoded><![CDATA[<p>I think its safe to say&#8230; AS2 was sooo much easier lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-make-a-vertical-shooter-in-as3-part-6/#comment-801</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Wed, 13 May 2009 03:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=642#comment-801</guid>
		<description>Ok i think i got a basic HP system down.

So heres what you do;

At the top of your main script (frame 1), add a new variable definition:
var hitPoints:int = 100;

Next, your going to want to make an HP Bar graphic. Draw a white rectange that is 100x25, and convert it to a MovieClip called mcHp. Now in the library go into the edit mode on mcHp and add a new layer within the MovieClip, draw a 100x25 green rectangle on this layer and make it perfectly overlap the white rectangle on the previous layer. Add keyframes to frame 100 on both layers, and on the layer with the green rectangle create a shape tween between the 1st and 100th frame. Go back to frame 1, still on the green rectangle layer, and resize the green rectangle to 1 pixel in width. You are now done making the HP bar.

Now go back to your main script, and insert this:

addEventListener(Event.ENTER_FRAME, hpBar); //New Listener
function hpBar(event:Event):void { //New Function
	if (gameOver) { //Checking if the game is over
		removeEventListener(Event.ENTER_FRAME, hpBar); //If it is remove the listener
	}
	mcHp.gotoAndStop(hitPoints); //Set the HP bars internal frame to be the same as your HP value
	if (hitPoints &lt;= 0) { //If your out of HP...
		gameOver = true; //End the Game...
		gotoAndStop(2); //Go to the You Lose screen...
	}
}

Now go to enemy.as and replace the current event that takes place if the enemy collides with you with this: 

				_root.hitPoints -= 25;
				removeEventListener(Event.ENTER_FRAME, eFrame);
				this.parent.removeChild(this);

Done if i remember correctly.

http://megaswf.com/view/d8d19647ee51161fee4b14c4ed908044.html
That would be the game with the HP bar that i just described and a few of my own changes, yes I am aware that there are some bugs.</description>
		<content:encoded><![CDATA[<p>Ok i think i got a basic HP system down.</p>
<p>So heres what you do;</p>
<p>At the top of your main script (frame 1), add a new variable definition:<br />
var hitPoints:int = 100;</p>
<p>Next, your going to want to make an HP Bar graphic. Draw a white rectange that is 100&#215;25, and convert it to a MovieClip called mcHp. Now in the library go into the edit mode on mcHp and add a new layer within the MovieClip, draw a 100&#215;25 green rectangle on this layer and make it perfectly overlap the white rectangle on the previous layer. Add keyframes to frame 100 on both layers, and on the layer with the green rectangle create a shape tween between the 1st and 100th frame. Go back to frame 1, still on the green rectangle layer, and resize the green rectangle to 1 pixel in width. You are now done making the HP bar.</p>
<p>Now go back to your main script, and insert this:</p>
<p>addEventListener(Event.ENTER_FRAME, hpBar); //New Listener<br />
function hpBar(event:Event):void { //New Function<br />
	if (gameOver) { //Checking if the game is over<br />
		removeEventListener(Event.ENTER_FRAME, hpBar); //If it is remove the listener<br />
	}<br />
	mcHp.gotoAndStop(hitPoints); //Set the HP bars internal frame to be the same as your HP value<br />
	if (hitPoints &lt;= 0) { //If your out of HP&#8230;<br />
		gameOver = true; //End the Game&#8230;<br />
		gotoAndStop(2); //Go to the You Lose screen&#8230;<br />
	}<br />
}</p>
<p>Now go to enemy.as and replace the current event that takes place if the enemy collides with you with this: </p>
<p>				_root.hitPoints -= 25;<br />
				removeEventListener(Event.ENTER_FRAME, eFrame);<br />
				this.parent.removeChild(this);</p>
<p>Done if i remember correctly.</p>
<p><a href="http://megaswf.com/view/d8d19647ee51161fee4b14c4ed908044.html" rel="nofollow">http://megaswf.com/view/d8d19647ee51161fee4b14c4ed908044.html</a><br />
That would be the game with the HP bar that i just described and a few of my own changes, yes I am aware that there are some bugs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

