<?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: Basic Actionscript 3 Game Part 1</title>
	<atom:link href="http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/</link>
	<description></description>
	<lastBuildDate>Wed, 15 Dec 2010 23:17:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: bronty</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-739</link>
		<dc:creator>bronty</dc:creator>
		<pubDate>Sat, 29 May 2010 09:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-739</guid>
		<description>i mean how to make the bullet go to the right??
and how to put in enemy??</description>
		<content:encoded><![CDATA[<p>i mean how to make the bullet go to the right??<br />
and how to put in enemy??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bronty</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-738</link>
		<dc:creator>bronty</dc:creator>
		<pubDate>Sat, 29 May 2010 08:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-738</guid>
		<description>how to make the bullet go to the left??</description>
		<content:encoded><![CDATA[<p>how to make the bullet go to the left??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-171</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Mon, 31 Aug 2009 14:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-171</guid>
		<description>Hi, I loved the tutorial and have got to work perfectly with a fly  shooting some rather than a square shooting a bullet box but the codes the same.
One thing that is puzzling me that i can&#039;t work is every few seconds the movie clip leaves and instance of the fly behind. So after a while I&#039;ve got heaps of them all over the screen.
Please help.

var Fly1:fly = new fly();
//comment This creates a new instance of the movie clip fly to the variable Fly1
Fly1.x = mouseX;
Fly1.y = mouseY;
addChild(Fly1);
// comment This adds the variable containing the instance of the movie clip flip to the stage

stage.addEventListener(MouseEvent.MOUSE_MOVE,mousemove);
stage.addEventListener(MouseEvent.MOUSE_DOWN,poo);

function mousemove(e:MouseEvent):void
{
Fly1.x = mouseX;
Fly1.y = mouseY;

};

function poo(e:Event):void
{
var Fly_Poo1:fly_poo = new fly_poo;
Fly_Poo1.x = Fly1.x-20;
Fly_Poo1.y = Fly1.y-20;
addChild(Fly_Poo1);
Fly_Poo1.addEventListener(Event.ENTER_FRAME,makepoo);
};

function makepoo(e:Event):void
{
e.target.y -= 10;
if(e.target.y &lt;= -400){
e.target.removeEventListener(Event.ENTER_FRAME, makepoo);
removeChild(MovieClip(e.target));
}
};</description>
		<content:encoded><![CDATA[<p>Hi, I loved the tutorial and have got to work perfectly with a fly  shooting some rather than a square shooting a bullet box but the codes the same.<br />
One thing that is puzzling me that i can't work is every few seconds the movie clip leaves and instance of the fly behind. So after a while I've got heaps of them all over the screen.<br />
Please help.</p>
<p>var Fly1:fly = new fly();<br />
//comment This creates a new instance of the movie clip fly to the variable Fly1<br />
Fly1.x = mouseX;<br />
Fly1.y = mouseY;<br />
addChild(Fly1);<br />
// comment This adds the variable containing the instance of the movie clip flip to the stage</p>
<p>stage.addEventListener(MouseEvent.MOUSE_MOVE,mousemove);<br />
stage.addEventListener(MouseEvent.MOUSE_DOWN,poo);</p>
<p>function mousemove(e:MouseEvent):void<br />
{<br />
Fly1.x = mouseX;<br />
Fly1.y = mouseY;</p>
<p>};</p>
<p>function poo(e:Event):void<br />
{<br />
var Fly_Poo1:fly_poo = new fly_poo;<br />
Fly_Poo1.x = Fly1.x-20;<br />
Fly_Poo1.y = Fly1.y-20;<br />
addChild(Fly_Poo1);<br />
Fly_Poo1.addEventListener(Event.ENTER_FRAME,makepoo);<br />
};</p>
<p>function makepoo(e:Event):void<br />
{<br />
e.target.y -= 10;<br />
if(e.target.y &lt;= -400){<br />
e.target.removeEventListener(Event.ENTER_FRAME, makepoo);<br />
removeChild(MovieClip(e.target));<br />
}<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mokey</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-170</link>
		<dc:creator>Mokey</dc:creator>
		<pubDate>Sun, 30 Aug 2009 14:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-170</guid>
		<description>One more thing, mind if I suggest to use the:       Mouse.hide();         statement? It&#039;ll make it look more neat...</description>
		<content:encoded><![CDATA[<p>One more thing, mind if I suggest to use the:       Mouse.hide();         statement? It'll make it look more neat...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mokey</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-169</link>
		<dc:creator>Mokey</dc:creator>
		<pubDate>Sun, 30 Aug 2009 14:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-169</guid>
		<description>Hey Sylario. You might not view this (Seems you&#039;ve posted looong back ago) but it&#039;s hard to solve errors without the actual code itself. E-mail me your source at gbmokshal54@gmail.com and I&#039;ll take a look at it! This is usually an odd error and requires some time to look into...</description>
		<content:encoded><![CDATA[<p>Hey Sylario. You might not view this (Seems you've posted looong back ago) but it's hard to solve errors without the actual code itself. E-mail me your source at <a href="mailto:gbmokshal54@gmail.com">gbmokshal54@gmail.com</a> and I'll take a look at it! This is usually an odd error and requires some time to look into...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylario</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-137</link>
		<dc:creator>Sylario</dc:creator>
		<pubDate>Sun, 22 Mar 2009 19:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-137</guid>
		<description>Great tutorial! However it seems CS4 is more tough about objects. 

There is two errors about player.x and player.y :

1119: Access of possibly undefined property x through a reference with static type Class. player.x=mouseX;
1119: Access of possibly undefined property y through a reference with static type Class. player.y=mouseY;

how can i correct that?</description>
		<content:encoded><![CDATA[<p>Great tutorial! However it seems CS4 is more tough about objects. </p>
<p>There is two errors about player.x and player.y :</p>
<p>1119: Access of possibly undefined property x through a reference with static type Class. player.x=mouseX;<br />
1119: Access of possibly undefined property y through a reference with static type Class. player.y=mouseY;</p>
<p>how can i correct that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarff</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-125</link>
		<dc:creator>Jarff</dc:creator>
		<pubDate>Wed, 04 Mar 2009 10:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-125</guid>
		<description>Hi, good tutorial and game!
Is there a way of putting a button into this, so you can click on it? I&#039;ve tried loading this into a .fla already, and works fine, just i can&#039;t click any of the other buttons on the page.

Any help would be appreciated!

Thanks - funny game btw.</description>
		<content:encoded><![CDATA[<p>Hi, good tutorial and game!<br />
Is there a way of putting a button into this, so you can click on it? I've tried loading this into a .fla already, and works fine, just i can't click any of the other buttons on the page.</p>
<p>Any help would be appreciated!</p>
<p>Thanks - funny game btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-122</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Mon, 02 Mar 2009 20:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-122</guid>
		<description>Really liked your tutorial. Hope to see some collisions added to the game soon.</description>
		<content:encoded><![CDATA[<p>Really liked your tutorial. Hope to see some collisions added to the game soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: one million euro blog</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-113</link>
		<dc:creator>one million euro blog</dc:creator>
		<pubDate>Mon, 09 Feb 2009 16:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-113</guid>
		<description>nice tutorial!

we are waiting for the other parts, where there will be collisions between enemy and bullet.

I think we will use hitTestObject property.</description>
		<content:encoded><![CDATA[<p>nice tutorial!</p>
<p>we are waiting for the other parts, where there will be collisions between enemy and bullet.</p>
<p>I think we will use hitTestObject property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neel</title>
		<link>http://www.thetutorialblog.com/flash-actionscript/basic-actionscript-3-game/comment-page-1/#comment-112</link>
		<dc:creator>Neel</dc:creator>
		<pubDate>Sun, 08 Feb 2009 01:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=16#comment-112</guid>
		<description>this is my code: (but it doesn&#039;t work, i don&#039;t know y can you help me plz, oh and i&#039;m using cs4)


//Comment 1
var Player:player = new player();
Player.x = mouseX;
Player.y = mouseY;
addChild(Player);

//Comment 2
stage.addEventListener(MouseEvent.MOUSE_MOVE, mousemove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, shoot);

//Comment 3
function mousemove(e:MouseEvent):void{
	Player.x = mouseX;
	Player.y = mouseY;
}

//Comment 4
function shoot(e:Event):void{
	var Bullet:bullet = new bullet();
	Bullet.x = Player.x;
	Bullet.y = Player.y;
	addChild(Bullet);
	Bullet.addEventListener(Event.ENTER_FRAME, moveBullet); Add an event listener to Bullet for when it enters the frame and when it does call the function moveBullet.
}

//Comment 5
function moveBullet(e:Event):void{
	e.target.y -= 5;
	if(e.target.y &lt;= -10){
	e.target.removeEventListener(Event.ENTER_FRAME, moveBullet);
	removeChild(MovieClip(e.target));
}</description>
		<content:encoded><![CDATA[<p>this is my code: (but it doesn't work, i don't know y can you help me plz, oh and i'm using cs4)</p>
<p>//Comment 1<br />
var Player:player = new player();<br />
Player.x = mouseX;<br />
Player.y = mouseY;<br />
addChild(Player);</p>
<p>//Comment 2<br />
stage.addEventListener(MouseEvent.MOUSE_MOVE, mousemove);<br />
stage.addEventListener(MouseEvent.MOUSE_DOWN, shoot);</p>
<p>//Comment 3<br />
function mousemove(e:MouseEvent):void{<br />
	Player.x = mouseX;<br />
	Player.y = mouseY;<br />
}</p>
<p>//Comment 4<br />
function shoot(e:Event):void{<br />
	var Bullet:bullet = new bullet();<br />
	Bullet.x = Player.x;<br />
	Bullet.y = Player.y;<br />
	addChild(Bullet);<br />
	Bullet.addEventListener(Event.ENTER_FRAME, moveBullet); Add an event listener to Bullet for when it enters the frame and when it does call the function moveBullet.<br />
}</p>
<p>//Comment 5<br />
function moveBullet(e:Event):void{<br />
	e.target.y -= 5;<br />
	if(e.target.y &lt;= -10){<br />
	e.target.removeEventListener(Event.ENTER_FRAME, moveBullet);<br />
	removeChild(MovieClip(e.target));<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

