<?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/2009/01/tutorial-create-a-platform-game-in-as2/</link>
	<description>All about Design, Programming and Game Development.</description>
	<lastBuildDate>Sat, 09 Jan 2010 07:45:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dude</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#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&amp;file=00001136.html" rel="nofollow">http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;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/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#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: -.-</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-900</link>
		<dc:creator>-.-</dc:creator>
		<pubDate>Tue, 21 Jul 2009 20:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-900</guid>
		<description>the jump script doesnt work, my char moves but doesnt jump</description>
		<content:encoded><![CDATA[<p>the jump script doesnt work, my char moves but doesnt jump</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-873</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 02 Jul 2009 06:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-873</guid>
		<description>i have written this for an hour and then nothing happened doesn&#039;t work for me i guess</description>
		<content:encoded><![CDATA[<p>i have written this for an hour and then nothing happened doesn&#8217;t work for me i guess</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carl</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-848</link>
		<dc:creator>carl</dc:creator>
		<pubDate>Mon, 08 Jun 2009 02:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-848</guid>
		<description>how do i change the hight of the jump?</description>
		<content:encoded><![CDATA[<p>how do i change the hight of the jump?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eriq xpyonedge</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-828</link>
		<dc:creator>eriq xpyonedge</dc:creator>
		<pubDate>Mon, 25 May 2009 16:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-828</guid>
		<description>hi, i have try making this game and its work. But then, i have a problem to change the keys. Can u give me the coding for change the directional keys to a,s,d,f keys...im still new new in as2~</description>
		<content:encoded><![CDATA[<p>hi, i have try making this game and its work. But then, i have a problem to change the keys. Can u give me the coding for change the directional keys to a,s,d,f keys&#8230;im still new new in as2~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-825</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 23 May 2009 14:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-825</guid>
		<description>Not nay saying or anything, but surely for the jump scripting, couldn&#039;t you just use this?

var yspeed = 1;
var gravity = 1;
var jump = -8;
onEnterFrame = function () {
   mcMain._y += yspeed;
   yspeed += gravity;
   if(mcMain.hitTest(ground)){
      if(Key.isDown(Key.UP)){
         yspeed = jump;
      } else {
         yspeed = 0;
      }
   }
}</description>
		<content:encoded><![CDATA[<p>Not nay saying or anything, but surely for the jump scripting, couldn&#8217;t you just use this?</p>
<p>var yspeed = 1;<br />
var gravity = 1;<br />
var jump = -8;<br />
onEnterFrame = function () {<br />
   mcMain._y += yspeed;<br />
   yspeed += gravity;<br />
   if(mcMain.hitTest(ground)){<br />
      if(Key.isDown(Key.UP)){<br />
         yspeed = jump;<br />
      } else {<br />
         yspeed = 0;<br />
      }<br />
   }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: larry</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-734</link>
		<dc:creator>larry</dc:creator>
		<pubDate>Wed, 22 Apr 2009 06:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-734</guid>
		<description>newbie here but i copied the script in per word except but it gives me on/onClipEvent error on a few lines of code. how do i Implement this correctly?</description>
		<content:encoded><![CDATA[<p>newbie here but i copied the script in per word except but it gives me on/onClipEvent error on a few lines of code. how do i Implement this correctly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2/comment-page-1/#comment-670</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 27 Mar 2009 21:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1020#comment-670</guid>
		<description>This tutorial is quite helpful but lets say i would like to make a character accually walk, and jump as opposed to simply move. I  would assume i would involve making a movie clip for walking and jumping followed by using action script to swap them in for the standing frame once a button is pressed.
The thing is i have no idea how to do what i just said above or if it was a correct assumption in the first place.
Also i was wondering if the same concept would apply to enimmies and world objects such as the bumpers.</description>
		<content:encoded><![CDATA[<p>This tutorial is quite helpful but lets say i would like to make a character accually walk, and jump as opposed to simply move. I  would assume i would involve making a movie clip for walking and jumping followed by using action script to swap them in for the standing frame once a button is pressed.<br />
The thing is i have no idea how to do what i just said above or if it was a correct assumption in the first place.<br />
Also i was wondering if the same concept would apply to enimmies and world objects such as the bumpers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
