<?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: Flash Tutorial: Character Movement with Arrow Keys</title>
	<atom:link href="http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/</link>
	<description></description>
	<lastBuildDate>Sun, 20 Jun 2010 11:04:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-986</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 16 Jan 2010 18:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-986</guid>
		<description>Due to overwhelming response to this tutorial, comments for this post are closed. If you are having problems, please refer to other users comments above, as the issue may already have been addressed.

Thanks for reading,
Mike</description>
		<content:encoded><![CDATA[<p>Due to overwhelming response to this tutorial, comments for this post are closed. If you are having problems, please refer to other users comments above, as the issue may already have been addressed.</p>
<p>Thanks for reading,<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xen</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-828</link>
		<dc:creator>Xen</dc:creator>
		<pubDate>Wed, 09 Sep 2009 15:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-828</guid>
		<description>&quot;To add animation, you will need to change a bit. For example, You will need to have a default pose, Which is usually posing forward, then four more poses, each, inside that frame, will have a movieclip, with your animation.&quot;

I don&#039;t understand sorry, where do the default poses actually go? My sprite is working fine, apart from stopping it animating when in a stationary postition.  Have followed both sets of instructions, but neither have worked. I put in an &quot;idle&quot; keyframe and the else statement and it worked in one direction, but then stopped the animation completely. When I put the else statement after all 4 directions, my sprite no longer walked, just slid. All I need is a push towards how to stop animating the sprite when the keys are not pressed.
Great tut by the way, best one on the web!</description>
		<content:encoded><![CDATA[<p>&#8220;To add animation, you will need to change a bit. For example, You will need to have a default pose, Which is usually posing forward, then four more poses, each, inside that frame, will have a movieclip, with your animation.&#8221;</p>
<p>I don&#8217;t understand sorry, where do the default poses actually go? My sprite is working fine, apart from stopping it animating when in a stationary postition.  Have followed both sets of instructions, but neither have worked. I put in an &#8220;idle&#8221; keyframe and the else statement and it worked in one direction, but then stopped the animation completely. When I put the else statement after all 4 directions, my sprite no longer walked, just slid. All I need is a push towards how to stop animating the sprite when the keys are not pressed.<br />
Great tut by the way, best one on the web!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pligg.com</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-810</link>
		<dc:creator>pligg.com</dc:creator>
		<pubDate>Sat, 11 Jul 2009 03:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-810</guid>
		<description>&lt;strong&gt;Flash Tutorial: Character Movement with Arrow Keys...&lt;/strong&gt;

In this Flash tutorial, I will show you how to move a game character using the arrow keys, and have the character face in the direction that he is moving....</description>
		<content:encoded><![CDATA[<p><strong>Flash Tutorial: Character Movement with Arrow Keys&#8230;</strong></p>
<p>In this Flash tutorial, I will show you how to move a game character using the arrow keys, and have the character face in the direction that he is moving&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blue lady</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-802</link>
		<dc:creator>blue lady</dc:creator>
		<pubDate>Wed, 08 Jul 2009 03:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-802</guid>
		<description>great! keep going.. :grin:

very helpful.. :razz:</description>
		<content:encoded><![CDATA[<p>great! keep going.. <img src='http://mikestickney.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </p>
<p>very helpful.. <img src='http://mikestickney.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: obb</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-797</link>
		<dc:creator>obb</dc:creator>
		<pubDate>Fri, 12 Jun 2009 19:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-797</guid>
		<description>how do you add movie two it. e.g. so it could jump</description>
		<content:encoded><![CDATA[<p>how do you add movie two it. e.g. so it could jump</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silent Noise</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-746</link>
		<dc:creator>Silent Noise</dc:creator>
		<pubDate>Sat, 21 Feb 2009 10:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-746</guid>
		<description>ok i came to figure out i was working the whole thing in the scene not in a new symbol :p my bad.

it works perfectly now:mrgreen:</description>
		<content:encoded><![CDATA[<p>ok i came to figure out i was working the whole thing in the scene not in a new symbol :p my bad.</p>
<p>it works perfectly now:mrgreen:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silent Noise</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-745</link>
		<dc:creator>Silent Noise</dc:creator>
		<pubDate>Sat, 21 Feb 2009 09:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-745</guid>
		<description>and the movie clip is in four files (in my file) 
but in the other one it&#039;s just one layer and one movieclip:neutral:</description>
		<content:encoded><![CDATA[<p>and the movie clip is in four files (in my file)<br />
but in the other one it&#8217;s just one layer and one movieclip:neutral:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silent Noise</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-744</link>
		<dc:creator>Silent Noise</dc:creator>
		<pubDate>Sat, 21 Feb 2009 09:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-744</guid>
		<description>Hi

That&#039;s awesome man!
nice tutorial but...

The character is moving and all but the animation wont change even in the file i downloaded...

i use Adobe flash CS4
and this is the code in the downloaded file:

// when the clip enters the frame, perform the code between the curly brackets
onClipEvent(enterFrame){
	
	// if the right arrow key is pressed, perform the code between the curly brackets
	if(Key.isDown(Key.RIGHT)){
		// move this clip 5 pixels to the right
		this._x += 5;
		// go to and stop on the frame labeled &quot;right&quot;
		this.gotoAndStop(&quot;right&quot;);
	}
	
	// the the left arrow key is pressed, perform the code between the curly brackets
	if(Key.isDown(Key.LEFT)){
		// move this clip 5 pixels to the left
		this._x -= 5;
		// go to and stop on the frame labeled &quot;left&quot;
		this.gotoAndStop(&quot;left&quot;);
	}
	
	// if the up arrow is pressed, perform the code between the curly brackets
	if(Key.isDown(Key.UP)){
		// move this clip 5 pixels up
		this._y -= 5;
		// go to and stop on the frame labeled &quot;up&quot;
		this.gotoAndStop(&quot;up&quot;);
	}
	
	// if the down arrow is pressed, perfrom the code between the curly brackets
	if(Key.isDown(Key.DOWN)){
		// move this clip 5 pixels down
		this._y += 5;
		// go to and stop on the frame labeled &quot;down&quot;
		this.gotoAndStop(&quot;down&quot;);
	}
	
// closes the on clip event code
}



And this is the code in my file:

    onClipEvent(enterFrame){
    if(Key.isDown(Key.RIGHT)){
    this._x += 5;
    this.gotoAndStop(&quot;right&quot;);
    }

    if(Key.isDown(Key.LEFT)){
    this._x -= 5;
    this.gotoAndStop(&quot;left&quot;);
    }

    if(Key.isDown(Key.UP)){
    this._y -= 5;
    this.gotoAndStop(&quot;up&quot;);
    }

    if(Key.isDown(Key.DOWN)){
    this._y += 5;
    this.gotoAndStop(&quot;down&quot;);
    }

    }</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>That&#8217;s awesome man!<br />
nice tutorial but&#8230;</p>
<p>The character is moving and all but the animation wont change even in the file i downloaded&#8230;</p>
<p>i use Adobe flash CS4<br />
and this is the code in the downloaded file:</p>
<p>// when the clip enters the frame, perform the code between the curly brackets<br />
onClipEvent(enterFrame){</p>
<p>	// if the right arrow key is pressed, perform the code between the curly brackets<br />
	if(Key.isDown(Key.RIGHT)){<br />
		// move this clip 5 pixels to the right<br />
		this._x += 5;<br />
		// go to and stop on the frame labeled &#8220;right&#8221;<br />
		this.gotoAndStop(&#8220;right&#8221;);<br />
	}</p>
<p>	// the the left arrow key is pressed, perform the code between the curly brackets<br />
	if(Key.isDown(Key.LEFT)){<br />
		// move this clip 5 pixels to the left<br />
		this._x -= 5;<br />
		// go to and stop on the frame labeled &#8220;left&#8221;<br />
		this.gotoAndStop(&#8220;left&#8221;);<br />
	}</p>
<p>	// if the up arrow is pressed, perform the code between the curly brackets<br />
	if(Key.isDown(Key.UP)){<br />
		// move this clip 5 pixels up<br />
		this._y -= 5;<br />
		// go to and stop on the frame labeled &#8220;up&#8221;<br />
		this.gotoAndStop(&#8220;up&#8221;);<br />
	}</p>
<p>	// if the down arrow is pressed, perfrom the code between the curly brackets<br />
	if(Key.isDown(Key.DOWN)){<br />
		// move this clip 5 pixels down<br />
		this._y += 5;<br />
		// go to and stop on the frame labeled &#8220;down&#8221;<br />
		this.gotoAndStop(&#8220;down&#8221;);<br />
	}</p>
<p>// closes the on clip event code<br />
}</p>
<p>And this is the code in my file:</p>
<p>    onClipEvent(enterFrame){<br />
    if(Key.isDown(Key.RIGHT)){<br />
    this._x += 5;<br />
    this.gotoAndStop(&#8220;right&#8221;);<br />
    }</p>
<p>    if(Key.isDown(Key.LEFT)){<br />
    this._x -= 5;<br />
    this.gotoAndStop(&#8220;left&#8221;);<br />
    }</p>
<p>    if(Key.isDown(Key.UP)){<br />
    this._y -= 5;<br />
    this.gotoAndStop(&#8220;up&#8221;);<br />
    }</p>
<p>    if(Key.isDown(Key.DOWN)){<br />
    this._y += 5;<br />
    this.gotoAndStop(&#8220;down&#8221;);<br />
    }</p>
<p>    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-742</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 13 Feb 2009 19:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-742</guid>
		<description>Hey Andi,

Yes, you are right, if you are having trouble, you can reference the frame number rather than naming the frame. However it is my recommendation to do this only as a trouble shooting measure. It is better practice to use frame labels. While it might be a little tougher to remember what you labeled things, and there is more risk of mistyping, using frame labels makes for a more flexible .fla. If you wanted to go in and add frames to the timeline, or move the frame at all, using labels alllows you to do this without having to go back and change the code.

Of course it really all comes down to personal preference, but that&#039;s my two cents.

- Mike</description>
		<content:encoded><![CDATA[<p>Hey Andi,</p>
<p>Yes, you are right, if you are having trouble, you can reference the frame number rather than naming the frame. However it is my recommendation to do this only as a trouble shooting measure. It is better practice to use frame labels. While it might be a little tougher to remember what you labeled things, and there is more risk of mistyping, using frame labels makes for a more flexible .fla. If you wanted to go in and add frames to the timeline, or move the frame at all, using labels alllows you to do this without having to go back and change the code.</p>
<p>Of course it really all comes down to personal preference, but that&#8217;s my two cents.</p>
<p>- Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andi</title>
		<link>http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/comment-page-2/#comment-741</link>
		<dc:creator>Andi</dc:creator>
		<pubDate>Fri, 13 Feb 2009 12:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://mikestickney.com/wordpress/flash-tutorial-character-movement-with-arrow-keys/#comment-741</guid>
		<description>In this code 
    onClipEvent(enterFrame){
    if(Key.isDown(Key.RIGHT)){
    this._x += 5;
    this.gotoAndStop(”right”);
    }

    if(Key.isDown(Key.LEFT)){
    this._x -= 5;
    this.gotoAndStop(”left”);
    }

    if(Key.isDown(Key.UP)){
    this._y -= 5;
    this.gotoAndStop(”up”);
    }

    if(Key.isDown(Key.DOWN)){
    this._y += 5;
    this.gotoAndStop(”down”);
    }

    }
you can see it says this.gotoAndStop(&quot;down&quot;) well it might not work for you because he has named hes frames to down left right.

so to fix this just replace up with like this.gotoAndStop(5);
then that should work just thought i point this out for noobs</description>
		<content:encoded><![CDATA[<p>In this code<br />
    onClipEvent(enterFrame){<br />
    if(Key.isDown(Key.RIGHT)){<br />
    this._x += 5;<br />
    this.gotoAndStop(”right”);<br />
    }</p>
<p>    if(Key.isDown(Key.LEFT)){<br />
    this._x -= 5;<br />
    this.gotoAndStop(”left”);<br />
    }</p>
<p>    if(Key.isDown(Key.UP)){<br />
    this._y -= 5;<br />
    this.gotoAndStop(”up”);<br />
    }</p>
<p>    if(Key.isDown(Key.DOWN)){<br />
    this._y += 5;<br />
    this.gotoAndStop(”down”);<br />
    }</p>
<p>    }<br />
you can see it says this.gotoAndStop(&#8220;down&#8221;) well it might not work for you because he has named hes frames to down left right.</p>
<p>so to fix this just replace up with like this.gotoAndStop(5);<br />
then that should work just thought i point this out for noobs</p>
]]></content:encoded>
	</item>
</channel>
</rss>
