<?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: Create a Platform Game in AS3</title>
	<atom:link href="http://www.mrsunstudios.com/2008/08/tutorial-create-a-platform-game-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/</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: Cameron</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1308</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Fri, 25 Jun 2010 04:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1308</guid>
		<description>For some reason my character does not land at the base of the screen after jumping, even if starting at the y=0 he seems to stop around y=5 or so. My code is identical to yours. After the first jump, the character lands roughly around y=5 and jumps from that reference and lands there after that.</description>
		<content:encoded><![CDATA[<p>For some reason my character does not land at the base of the screen after jumping, even if starting at the y=0 he seems to stop around y=5 or so. My code is identical to yours. After the first jump, the character lands roughly around y=5 and jumps from that reference and lands there after that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Platform games &#171; Brecht cosyns&#39;s Webanimatie</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1297</link>
		<dc:creator>Platform games &#171; Brecht cosyns&#39;s Webanimatie</dc:creator>
		<pubDate>Mon, 07 Jun 2010 14:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1297</guid>
		<description>[...] trytutorial now! [...]</description>
		<content:encoded><![CDATA[<p>[...] trytutorial now! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariannen</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1294</link>
		<dc:creator>Mariannen</dc:creator>
		<pubDate>Fri, 04 Jun 2010 15:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1294</guid>
		<description>wow, one year later... and there comes my question :P
thank you for this tutorial, finaly i am getting to undersand AS3 :P
I want to make some kind of platform game, but with video images. So the problem i have now, is that it has different images for each key. Therefor i used this:

mcMain.addEventListener(Event.ENTER_FRAME, moveChar);
function moveChar(event:Event):void {
	//if certain keys are down then move the character
		if (leftKeyDown) {
		mcMain.x-=mainSpeed;
		mcMain.scaleX=-1;
		mcMain.gotoAndStop(&#039;run&#039;);
	} 
	else if (rightKeyDown) {
		mcMain.x+=mainSpeed;
		mcMain.scaleX=1;
		mcMain.gotoAndStop(&#039;run&#039;);
	}
	else if (upKeyDown&#124;&#124;mainJumping) {
		mainJump();
		mcMain.gotoAndStop(&#039;jump&#039;);
	}
	else {
	mcMain.gotoAndStop(&#039;stand&#039;);
	}
	
}

but when i use the keys i can not use jump and run at the same time. And i can run in the air :P can you please help me with this problem? 

tnx</description>
		<content:encoded><![CDATA[<p>wow, one year later&#8230; and there comes my question <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
thank you for this tutorial, finaly i am getting to undersand AS3 <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
I want to make some kind of platform game, but with video images. So the problem i have now, is that it has different images for each key. Therefor i used this:</p>
<p>mcMain.addEventListener(Event.ENTER_FRAME, moveChar);<br />
function moveChar(event:Event):void {<br />
	//if certain keys are down then move the character<br />
		if (leftKeyDown) {<br />
		mcMain.x-=mainSpeed;<br />
		mcMain.scaleX=-1;<br />
		mcMain.gotoAndStop(&#8216;run&#8217;);<br />
	}<br />
	else if (rightKeyDown) {<br />
		mcMain.x+=mainSpeed;<br />
		mcMain.scaleX=1;<br />
		mcMain.gotoAndStop(&#8216;run&#8217;);<br />
	}<br />
	else if (upKeyDown||mainJumping) {<br />
		mainJump();<br />
		mcMain.gotoAndStop(&#8216;jump&#8217;);<br />
	}<br />
	else {<br />
	mcMain.gotoAndStop(&#8216;stand&#8217;);<br />
	}</p>
<p>}</p>
<p>but when i use the keys i can not use jump and run at the same time. And i can run in the air <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  can you please help me with this problem? </p>
<p>tnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laatste nieuws &#171; Weblog</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1278</link>
		<dc:creator>Laatste nieuws &#171; Weblog</dc:creator>
		<pubDate>Tue, 25 May 2010 16:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1278</guid>
		<description>[...] is het Mario-spelletje geüpload. Om het spelletje te maken heb ik gebruik gemaakt van de tutorial: . Maar genoeg over het spelletje. We gaan terug verder werken aan onze [...]</description>
		<content:encoded><![CDATA[<p>[...] is het Mario-spelletje geüpload. Om het spelletje te maken heb ik gebruik gemaakt van de tutorial: . Maar genoeg over het spelletje. We gaan terug verder werken aan onze [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NoviceCoderJ</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1261</link>
		<dc:creator>NoviceCoderJ</dc:creator>
		<pubDate>Mon, 10 May 2010 12:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1261</guid>
		<description>Hey there, Novice AS3 coder here, and I have no problems so far, but what I am doing here is reading the code to understand why it was written that way, and its all good to my eyes except for the keyCode, I was wondering why you use what appear to be a random selection of numbers to identify keys. Are there KeyCodes for every key on the keyboard, if so how do I obtain a copy if not, please explain why you use keyCodes?</description>
		<content:encoded><![CDATA[<p>Hey there, Novice AS3 coder here, and I have no problems so far, but what I am doing here is reading the code to understand why it was written that way, and its all good to my eyes except for the keyCode, I was wondering why you use what appear to be a random selection of numbers to identify keys. Are there KeyCodes for every key on the keyboard, if so how do I obtain a copy if not, please explain why you use keyCodes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tofu</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1260</link>
		<dc:creator>tofu</dc:creator>
		<pubDate>Mon, 10 May 2010 10:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1260</guid>
		<description>AHHHHH!!!
Ní thuigim... :(</description>
		<content:encoded><![CDATA[<p>AHHHHH!!!<br />
Ní thuigim&#8230; <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1250</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 04 May 2010 17:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1250</guid>
		<description>ok so what if we want a character who looks different when they move left or right? I find that many tutorials teaching how to make a platformer just ignore this and do the simple object thing.</description>
		<content:encoded><![CDATA[<p>ok so what if we want a character who looks different when they move left or right? I find that many tutorials teaching how to make a platformer just ignore this and do the simple object thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: at war with AS3</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1234</link>
		<dc:creator>at war with AS3</dc:creator>
		<pubDate>Thu, 22 Apr 2010 23:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1234</guid>
		<description>got everything in place but i keep getting compiler error 1083: Syntax error on line 77. } else { is unexpected. i&#039;m pretty sure i told them it was coming...</description>
		<content:encoded><![CDATA[<p>got everything in place but i keep getting compiler error 1083: Syntax error on line 77. } else { is unexpected. i&#8217;m pretty sure i told them it was coming&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1233</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Thu, 22 Apr 2010 18:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1233</guid>
		<description>Hi, very good tutorial, but I don&#039;t know how to change the jump max height...</description>
		<content:encoded><![CDATA[<p>Hi, very good tutorial, but I don&#8217;t know how to change the jump max height&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cohen</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as3/#comment-1217</link>
		<dc:creator>cohen</dc:creator>
		<pubDate>Tue, 13 Apr 2010 10:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=660#comment-1217</guid>
		<description>hey i cant get the guy to move because the speed and jump actions dont have a defined property. how to define how much they should jump or move by?</description>
		<content:encoded><![CDATA[<p>hey i cant get the guy to move because the speed and jump actions dont have a defined property. how to define how much they should jump or move by?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

