<?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 AS2</title>
	<atom:link href="http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/</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: Carson</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1259</link>
		<dc:creator>Carson</dc:creator>
		<pubDate>Sat, 08 May 2010 09:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1259</guid>
		<description>i cant even get my character to walk &gt;=(</description>
		<content:encoded><![CDATA[<p>i cant even get my character to walk &gt;=(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DarkIce</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1246</link>
		<dc:creator>DarkIce</dc:creator>
		<pubDate>Mon, 03 May 2010 13:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1246</guid>
		<description>:( plz help. i have spent forever trying to make a platform game with lots of different tutorials and every time i try when i come to play it for test it my character doesnt move. :( help plz.</description>
		<content:encoded><![CDATA[<p> <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  plz help. i have spent forever trying to make a platform game with lots of different tutorials and every time i try when i come to play it for test it my character doesnt move. <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  help plz.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1224</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Sun, 18 Apr 2010 17:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1224</guid>
		<description>I added both scripts in the same Action Frame, the second group of script blocks the first group of script. Like: if I put the script for moving left and right first, then below that i put the script for jumping, when i preview the game, the character only jumps.  When I put the Jump script first and the movement script second, i can move left and right but not jump.  What am I doing wrong?</description>
		<content:encoded><![CDATA[<p>I added both scripts in the same Action Frame, the second group of script blocks the first group of script. Like: if I put the script for moving left and right first, then below that i put the script for jumping, when i preview the game, the character only jumps.  When I put the Jump script first and the movement script second, i can move left and right but not jump.  What am I doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DEI</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1203</link>
		<dc:creator>DEI</dc:creator>
		<pubDate>Wed, 31 Mar 2010 13:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1203</guid>
		<description>Very helpful. This is the smoothest jump tutorial I&#039;ve seen. Thanks a lot!

I made a couple changes in order to give the character a higher jump.
In this line:
jumpSpeed *= 1 - jumpSpeedLimit/75;
I changed the 70 to 150, and in this line:
jumpSpeed *= 1 + jumpSpeedLimit/50;
I changed the 50 to 100.

Perhaps you could make it more clear to people how easy it is to adjust the character jump height?</description>
		<content:encoded><![CDATA[<p>Very helpful. This is the smoothest jump tutorial I&#8217;ve seen. Thanks a lot!</p>
<p>I made a couple changes in order to give the character a higher jump.<br />
In this line:<br />
jumpSpeed *= 1 &#8211; jumpSpeedLimit/75;<br />
I changed the 70 to 150, and in this line:<br />
jumpSpeed *= 1 + jumpSpeedLimit/50;<br />
I changed the 50 to 100.</p>
<p>Perhaps you could make it more clear to people how easy it is to adjust the character jump height?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1189</link>
		<dc:creator>S</dc:creator>
		<pubDate>Wed, 17 Mar 2010 15:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1189</guid>
		<description>I used the jump function and the caracter jumped but it didnt fall down again can someone help</description>
		<content:encoded><![CDATA[<p>I used the jump function and the caracter jumped but it didnt fall down again can someone help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ani</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1177</link>
		<dc:creator>ani</dc:creator>
		<pubDate>Wed, 10 Mar 2010 13:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1177</guid>
		<description>Hi. Is it possible to add ur own images instead of creating circles? I ´would like to have my own enemies and hero.</description>
		<content:encoded><![CDATA[<p>Hi. Is it possible to add ur own images instead of creating circles? I ´would like to have my own enemies and hero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ...</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1167</link>
		<dc:creator>...</dc:creator>
		<pubDate>Thu, 04 Mar 2010 19:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1167</guid>
		<description>Dude - the code that you left still does not work - (sorry if this is retarded, im a newbie)</description>
		<content:encoded><![CDATA[<p>Dude &#8211; the code that you left still does not work &#8211; (sorry if this is retarded, im a newbie)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dude</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1115</link>
		<dc:creator>Dude</dc:creator>
		<pubDate>Sat, 09 Jan 2010 05:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1115</guid>
		<description>and for you eric you can always use &quot;for examble&quot; :
if (Key.isDown(Key.LEFT)){ ....

or you can visit this website to view Key code values :
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001136.html

((NOT ADVERTISING))

i am a newbie my self but i always use google and Flash Help topics to find answers !! 
hehe</description>
		<content:encoded><![CDATA[<p>and for you eric you can always use &#8220;for examble&#8221; :<br />
if (Key.isDown(Key.LEFT)){ &#8230;.</p>
<p>or you can visit this website to view Key code values :<br />
<a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00001136.html" rel="nofollow">http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00001136.html</a></p>
<p>((NOT ADVERTISING))</p>
<p>i am a newbie my self but i always use google and Flash Help topics to find answers !!<br />
hehe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dude</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1114</link>
		<dc:creator>Dude</dc:creator>
		<pubDate>Sat, 09 Jan 2010 04:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1114</guid>
		<description>the same thing happend to me at first but i knew how to fix it up.
you have to copy the last code instead of the on before it; so the final shape of the code should look like this:

var mainSpeed:Number = 7;
onEnterFrame = function(){ //this function will run every frame (needed for moving the character
	if(Key.isDown(37) &#124;&#124; Key.isDown(65)){ //if the &quot;A&quot; key or Left Arrow Key is Down
		mcMain._x -= mainSpeed;//then the move the guy left
	} else if(Key.isDown(39) &#124;&#124; Key.isDown(68)){//if the &quot;D&quot; key or Right Arrow Key is Down
		mcMain._x += mainSpeed; //then move the guy to the right
	}
	mainJump();
}
//JUMPING VARIABLES
//whether or not the main guy is jumping
var mainJumping:Boolean = false;
//how quickly should the jump start off
var jumpSpeedLimit:Number = 15;
//the current speed of the jump;
var jumpSpeed:Number = jumpSpeedLimit;
//THE JUMPING FUNCTION
function mainJump():Void{
	//if main isn&#039;t already jumping
	if(!mainJumping){
		if(Key.isDown(38) &#124;&#124; Key.isDown(87)){
			//then start jumping
			mainJumping = true;
			jumpSpeed = jumpSpeedLimit*-1;
			mcMain._y += jumpSpeed;
		}
	} else {
		//if we&#039;re already jumping, then continue to do so
		if(jumpSpeed  -jumpSpeedLimit*.2){
				jumpSpeed *= -1;
			}
		}
		if(jumpSpeed &gt; 0 &amp;&amp; jumpSpeed = Stage.height - mcMain._height){
			mainJumping = false;
			mcMain._y = Stage.height - mcMain._height;
		}
	}
}</description>
		<content:encoded><![CDATA[<p>the same thing happend to me at first but i knew how to fix it up.<br />
you have to copy the last code instead of the on before it; so the final shape of the code should look like this:</p>
<p>var mainSpeed:Number = 7;<br />
onEnterFrame = function(){ //this function will run every frame (needed for moving the character<br />
	if(Key.isDown(37) || Key.isDown(65)){ //if the &#8220;A&#8221; key or Left Arrow Key is Down<br />
		mcMain._x -= mainSpeed;//then the move the guy left<br />
	} else if(Key.isDown(39) || Key.isDown(68)){//if the &#8220;D&#8221; key or Right Arrow Key is Down<br />
		mcMain._x += mainSpeed; //then move the guy to the right<br />
	}<br />
	mainJump();<br />
}<br />
//JUMPING VARIABLES<br />
//whether or not the main guy is jumping<br />
var mainJumping:Boolean = false;<br />
//how quickly should the jump start off<br />
var jumpSpeedLimit:Number = 15;<br />
//the current speed of the jump;<br />
var jumpSpeed:Number = jumpSpeedLimit;<br />
//THE JUMPING FUNCTION<br />
function mainJump():Void{<br />
	//if main isn&#8217;t already jumping<br />
	if(!mainJumping){<br />
		if(Key.isDown(38) || Key.isDown(87)){<br />
			//then start jumping<br />
			mainJumping = true;<br />
			jumpSpeed = jumpSpeedLimit*-1;<br />
			mcMain._y += jumpSpeed;<br />
		}<br />
	} else {<br />
		//if we&#8217;re already jumping, then continue to do so<br />
		if(jumpSpeed  -jumpSpeedLimit*.2){<br />
				jumpSpeed *= -1;<br />
			}<br />
		}<br />
		if(jumpSpeed &gt; 0 &amp;&amp; jumpSpeed = Stage.height &#8211; mcMain._height){<br />
			mainJumping = false;<br />
			mcMain._y = Stage.height &#8211; mcMain._height;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YOU GUYS</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2/#comment-1073</link>
		<dc:creator>YOU GUYS</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-1073</guid>
		<description>FIVE DOLLAR!</description>
		<content:encoded><![CDATA[<p>FIVE DOLLAR!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

