<?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 &#8211; Part 2</title>
	<atom:link href="http://www.mrsunstudios.com/2009/01/tutorial-create-a-platform-game-in-as2-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/</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: Tile-Based Box2dAS3 game &#171; GreenJay Blog</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-1248</link>
		<dc:creator>Tile-Based Box2dAS3 game &#171; GreenJay Blog</dc:creator>
		<pubDate>Tue, 04 May 2010 06:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-1248</guid>
		<description>[...] I would like to give a little credit to Emanuele Feronato for his many AS3 blog posts and to this Mr Sun Studios post on storing level [...]</description>
		<content:encoded><![CDATA[<p>[...] I would like to give a little credit to Emanuele Feronato for his many AS3 blog posts and to this Mr Sun Studios post on storing level [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fjames0327</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-1229</link>
		<dc:creator>fjames0327</dc:creator>
		<pubDate>Wed, 21 Apr 2010 15:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-1229</guid>
		<description>so i type in the code exactly, and every time i try it out, my computer freezes up</description>
		<content:encoded><![CDATA[<p>so i type in the code exactly, and every time i try it out, my computer freezes up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chester</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-1170</link>
		<dc:creator>chester</dc:creator>
		<pubDate>Sun, 07 Mar 2010 01:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-1170</guid>
		<description>mine just dosint genarate at all</description>
		<content:encoded><![CDATA[<p>mine just dosint genarate at all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-1006</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 01 Oct 2009 19:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-1006</guid>
		<description>Btw there is a small thing in the mcMain script. I have set cordinates on the script where the circle (Mcmain)

_x = 290;
_y = 250;

It puts the circle (mcMain) into a certain place in the game, you can change the cordinates (the numbers) or delete it :) Have a nice game</description>
		<content:encoded><![CDATA[<p>Btw there is a small thing in the mcMain script. I have set cordinates on the script where the circle (Mcmain)</p>
<p>_x = 290;<br />
_y = 250;</p>
<p>It puts the circle (mcMain) into a certain place in the game, you can change the cordinates (the numbers) or delete it <img src='http://www.mrsunstudios.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Have a nice game</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-1005</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 01 Oct 2009 19:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-1005</guid>
		<description>Hello. I can solve your problems with the collision on the box + move + jump.. Here is the script i came up with after an hour or two:


var mainJumping:Boolean = false;

var jumpSpeedLimit:Number = 15;

var jumpSpeed:Number = jumpSpeedLimit;


	var yspeed = 1;
var gravity = 1;
var jump = -8;
onEnterFrame = function () {
mcMain._y += yspeed;
yspeed += gravity;
if(mcMain.hitTest(mcBlock)){
if(Key.isDown(Key.UP)){
yspeed = jump;
} else {
yspeed = 0;
}
}
}


Make that on the layer. And now is the thing. Go to the ball / mcMain (select the ball in actionscript) And when you have the box where you can write in the script then write in this:

onClipEvent (load) {
    power = 6;
    radius = 6;
    _x = 290;
    _y = 250;
}
onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
        _x -= power;
    }
    if (Key.isDown(Key.RIGHT)) {
        _x += power;
    }
	
	}

I hope that i solved your problems.</description>
		<content:encoded><![CDATA[<p>Hello. I can solve your problems with the collision on the box + move + jump.. Here is the script i came up with after an hour or two:</p>
<p>var mainJumping:Boolean = false;</p>
<p>var jumpSpeedLimit:Number = 15;</p>
<p>var jumpSpeed:Number = jumpSpeedLimit;</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(mcBlock)){<br />
if(Key.isDown(Key.UP)){<br />
yspeed = jump;<br />
} else {<br />
yspeed = 0;<br />
}<br />
}<br />
}</p>
<p>Make that on the layer. And now is the thing. Go to the ball / mcMain (select the ball in actionscript) And when you have the box where you can write in the script then write in this:</p>
<p>onClipEvent (load) {<br />
    power = 6;<br />
    radius = 6;<br />
    _x = 290;<br />
    _y = 250;<br />
}<br />
onClipEvent (enterFrame) {<br />
    if (Key.isDown(Key.LEFT)) {<br />
        _x -= power;<br />
    }<br />
    if (Key.isDown(Key.RIGHT)) {<br />
        _x += power;<br />
    }</p>
<p>	}</p>
<p>I hope that i solved your problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-999</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 28 Sep 2009 20:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-999</guid>
		<description>On the &quot;finished product&quot; on this page, it wont stay on the blocks</description>
		<content:encoded><![CDATA[<p>On the &#8220;finished product&#8221; on this page, it wont stay on the blocks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-935</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 11 Aug 2009 18:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-935</guid>
		<description>why is the colour of the text different to mine i even copied it but still blue... e.g this bit is green var X:String = &#039;MAIN&#039;; and not red like yours ? and the lvl array bit like 	1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
that bit is just all black 
ps i have adobe cs4 flash</description>
		<content:encoded><![CDATA[<p>why is the colour of the text different to mine i even copied it but still blue&#8230; e.g this bit is green var X:String = &#8216;MAIN&#8217;; and not red like yours ? and the lvl array bit like 	1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<br />
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1<br />
that bit is just all black<br />
ps i have adobe cs4 flash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abinandhanan</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-903</link>
		<dc:creator>abinandhanan</dc:creator>
		<pubDate>Fri, 24 Jul 2009 08:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-903</guid>
		<description>same prob as evan.</description>
		<content:encoded><![CDATA[<p>same prob as evan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MegaVolt</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-843</link>
		<dc:creator>MegaVolt</dc:creator>
		<pubDate>Tue, 02 Jun 2009 12:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-843</guid>
		<description>Nope. If You follow this tutorial then You should make the changes in the document You already created. (that&#039;s what I did anyway when I was first trying it out).

It&#039;s explained properly where You should make changes in this tutorial,
but You can also download a source if You still dont understand.</description>
		<content:encoded><![CDATA[<p>Nope. If You follow this tutorial then You should make the changes in the document You already created. (that&#8217;s what I did anyway when I was first trying it out).</p>
<p>It&#8217;s explained properly where You should make changes in this tutorial,<br />
but You can also download a source if You still dont understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.mrsunstudios.com/blog/flash/tutorial-create-a-platform-game-in-as2-part-2/#comment-840</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 31 May 2009 20:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mrsunstudios.com/?p=1025#comment-840</guid>
		<description>do u create all of this on another flash document? or...can someone tell me WHERE everything goes...i finished step 1 properly...like i can move and jump...im just stuck at this step</description>
		<content:encoded><![CDATA[<p>do u create all of this on another flash document? or&#8230;can someone tell me WHERE everything goes&#8230;i finished step 1 properly&#8230;like i can move and jump&#8230;im just stuck at this step</p>
]]></content:encoded>
	</item>
</channel>
</rss>

