<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Moving Movie Clips with the Arrow Keys Tutorial</title>
	<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/</link>
	<description></description>
	<pubDate>Fri, 10 Feb 2012 19:36:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Herba</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130778</link>
		<dc:creator>Herba</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:17:19 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130778</guid>
		<description>What?  I don't think you read my post but I was talking about the incorporation of FrameChanging/_xscale alteration.  Nobody wants a static picture for a moving character.  Eventually he's going to try and apply that and get errors because it won't work unless an if-else statement is used.</description>
		<content:encoded><![CDATA[<p>What?  I don&#8217;t think you read my post but I was talking about the incorporation of FrameChanging/_xscale alteration.  Nobody wants a static picture for a moving character.  Eventually he&#8217;s going to try and apply that and get errors because it won&#8217;t work unless an if-else statement is used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 12markinlove12</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130774</link>
		<dc:creator>12markinlove12</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:15:10 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130774</guid>
		<description>X and Y translations isnt really that difficult its the same as if it was on a 4 point graph

1 Y &#38; + Y = UP
-1 Y &#38; - Y = DOWN
1 X &#38; - X = LEFT
-1 X &#38; + X = RIGHT

which in simple terms is

+y = up
-y = down
-x = left
+x = right.</description>
		<content:encoded><![CDATA[<p>X and Y translations isnt really that difficult its the same as if it was on a 4 point graph</p>
<p>1 Y &amp; + Y = UP<br />
-1 Y &amp; - Y = DOWN<br />
1 X &amp; - X = LEFT<br />
-1 X &amp; + X = RIGHT</p>
<p>which in simple terms is</p>
<p>+y = up<br />
-y = down<br />
-x = left<br />
+x = right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herba</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130773</link>
		<dc:creator>Herba</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:11:30 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130773</guid>
		<description>I was talking about else if, not }else{

and it's good practice.  He's going to get errors if he tries to add framechange/_xscale changes with the x/y translations when a key is pressed</description>
		<content:encoded><![CDATA[<p>I was talking about else if, not }else{</p>
<p>and it&#8217;s good practice.  He&#8217;s going to get errors if he tries to add framechange/_xscale changes with the x/y translations when a key is pressed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 12markinlove12</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130771</link>
		<dc:creator>12markinlove12</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:08:54 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130771</guid>
		<description>I never used else when only setting up a moveclip with movement, I only use else if im autually going to create a maze game. or a platform game, the }else{ isnt really needed for movement, plus this is the most basic method.</description>
		<content:encoded><![CDATA[<p>I never used else when only setting up a moveclip with movement, I only use else if im autually going to create a maze game. or a platform game, the }else{ isnt really needed for movement, plus this is the most basic method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herba</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130770</link>
		<dc:creator>Herba</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:07:12 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130770</guid>
		<description>Isn't it better to have else-if statements?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t it better to have else-if statements?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 12markinlove12</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130769</link>
		<dc:creator>12markinlove12</dc:creator>
		<pubDate>Wed, 01 Dec 2010 21:05:13 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-130769</guid>
		<description>You could do it this way.

First create your player, you don't have to give it a instance name since all you're really doing at this time is making your player move.

Now I want you to convert your player to a movieclip setting its registration point to the middle as in future you wish to add a Hit collision this makes your maze game or whatever it is your making simpler, Once you've registered it's registration point to the middle, I'd like you to go into advanced options and click "Export for Actionscript". 

Now, once your player has been created, copy and paste this code into your players actions or as I like to call it, the code tab.

onClipEvent (enterFrame){

if (Key.isDown(Key.LEFT)){
this.gotoAndStop("LEFT");
this._x-=5;
}

if (Key.isDown(Key.RIGHT)){
this.gotoAndStop("RIGHT");
this._x+=5;
}

if (Key.isDown(Key.UP)){
this.gotoAndStop("UP");
this._y+=5;
}

if (Key.isDown(Key.DOWN)){
this.gotoAndStop("DOWN");
this._y-=5;
}
}

Basically what this code means is that when you press the down key for example your character will not only go down, but because we have added. "this.gotoAndStop("DOWN");" it will also change turn itself around or just switch the player to the down position which is what we're going to do now.

Now as mentioned above we're going to add in the last couple of things to this movieclip. Now double click inside of your player and you will enter the movieclip, in here you could make changes if you feel your movieclip isn't right. 

Anyways back to the fun bit, basically i want you to create 3 more new frames and place the code "stop();" in all of them, Once that is done, Click on each frame and give them names of UP, LEFT, RIGHT and DOWN, Note THIS IS IMPORTANT THAT YOU TYPE "LEFT" IN CAPITAL LETTERS IN THESE FRAMES AND PLEASE ONLY DO ONE FRAME AT A TIME WITH A DIFFERENT DIRECTION.

now with your frames set up, Invidually click on a frame, lets say up and click the tool
which looks like a square with registration dots all over it and rotate your player on each frame to the direction of the instance names which were added to those frames if that makes any sense.

After you have added all of the directions to the respective frames then test your movie and have fun.

If you have any questions feel free to send me a comment on my youtube page

www.youtube.com/12markinlove12</description>
		<content:encoded><![CDATA[<p>You could do it this way.</p>
<p>First create your player, you don&#8217;t have to give it a instance name since all you&#8217;re really doing at this time is making your player move.</p>
<p>Now I want you to convert your player to a movieclip setting its registration point to the middle as in future you wish to add a Hit collision this makes your maze game or whatever it is your making simpler, Once you&#8217;ve registered it&#8217;s registration point to the middle, I&#8217;d like you to go into advanced options and click &#8220;Export for Actionscript&#8221;. </p>
<p>Now, once your player has been created, copy and paste this code into your players actions or as I like to call it, the code tab.</p>
<p>onClipEvent (enterFrame){</p>
<p>if (Key.isDown(Key.LEFT)){<br />
this.gotoAndStop(&#8221;LEFT&#8221;);<br />
this._x-=5;<br />
}</p>
<p>if (Key.isDown(Key.RIGHT)){<br />
this.gotoAndStop(&#8221;RIGHT&#8221;);<br />
this._x+=5;<br />
}</p>
<p>if (Key.isDown(Key.UP)){<br />
this.gotoAndStop(&#8221;UP&#8221;);<br />
this._y+=5;<br />
}</p>
<p>if (Key.isDown(Key.DOWN)){<br />
this.gotoAndStop(&#8221;DOWN&#8221;);<br />
this._y-=5;<br />
}<br />
}</p>
<p>Basically what this code means is that when you press the down key for example your character will not only go down, but because we have added. &#8220;this.gotoAndStop(&#8221;DOWN&#8221;);&#8221; it will also change turn itself around or just switch the player to the down position which is what we&#8217;re going to do now.</p>
<p>Now as mentioned above we&#8217;re going to add in the last couple of things to this movieclip. Now double click inside of your player and you will enter the movieclip, in here you could make changes if you feel your movieclip isn&#8217;t right. </p>
<p>Anyways back to the fun bit, basically i want you to create 3 more new frames and place the code &#8220;stop();&#8221; in all of them, Once that is done, Click on each frame and give them names of UP, LEFT, RIGHT and DOWN, Note THIS IS IMPORTANT THAT YOU TYPE &#8220;LEFT&#8221; IN CAPITAL LETTERS IN THESE FRAMES AND PLEASE ONLY DO ONE FRAME AT A TIME WITH A DIFFERENT DIRECTION.</p>
<p>now with your frames set up, Invidually click on a frame, lets say up and click the tool<br />
which looks like a square with registration dots all over it and rotate your player on each frame to the direction of the instance names which were added to those frames if that makes any sense.</p>
<p>After you have added all of the directions to the respective frames then test your movie and have fun.</p>
<p>If you have any questions feel free to send me a comment on my youtube page</p>
<p><a href="http://www.youtube.com/12markinlove12" rel="nofollow">www.youtube.com/12markinlove12</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-126031</link>
		<dc:creator>nate</dc:creator>
		<pubDate>Thu, 18 Nov 2010 01:39:53 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-126031</guid>
		<description>i would like to know if anyone here knows where i can find the code for the letters on the keyboard i want to use asdw instead of up,down,left,right,
if(Key.isDown(Key.??) i put A and it didnt work so i was wondering if theres numbers or sumthing</description>
		<content:encoded><![CDATA[<p>i would like to know if anyone here knows where i can find the code for the letters on the keyboard i want to use asdw instead of up,down,left,right,<br />
if(Key.isDown(Key.??) i put A and it didnt work so i was wondering if theres numbers or sumthing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unknown</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-125477</link>
		<dc:creator>Unknown</dc:creator>
		<pubDate>Tue, 16 Nov 2010 10:05:09 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-125477</guid>
		<description>Oh my gosh whenever I look for help on the internet I never comment on anything but I feel as if I have to give you a huge THANK YOU for making me realize my stupid mistake

I've been getting a syntax error for ages and I couldn't figure out why.

But your suggestion solved it!!!

I know you will probably never read my reply but THANK YOU SO MUCH FOR THIS SUGGESTION

You stopped me from quitting flash forever.</description>
		<content:encoded><![CDATA[<p>Oh my gosh whenever I look for help on the internet I never comment on anything but I feel as if I have to give you a huge THANK YOU for making me realize my stupid mistake</p>
<p>I&#8217;ve been getting a syntax error for ages and I couldn&#8217;t figure out why.</p>
<p>But your suggestion solved it!!!</p>
<p>I know you will probably never read my reply but THANK YOU SO MUCH FOR THIS SUGGESTION</p>
<p>You stopped me from quitting flash forever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moving MovieClips with the Arrow Keys &#124; MetaDark</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-115785</link>
		<dc:creator>Moving MovieClips with the Arrow Keys &#124; MetaDark</dc:creator>
		<pubDate>Mon, 18 Oct 2010 21:14:22 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-115785</guid>
		<description>[...] This is a AS3 rebuild of AwestyProductions Moving MovieClips with the Arrow Keys [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] This is a AS3 rebuild of AwestyProductions Moving MovieClips with the Arrow Keys [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: narikpid</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-109125</link>
		<dc:creator>narikpid</dc:creator>
		<pubDate>Wed, 22 Sep 2010 17:29:27 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/moving-movie-clips-with-the-arrow-keys-tutorial/#comment-109125</guid>
		<description>damn!!!what a simple code,thats what i was looking for..thanx man!actually i m trying to learn on my own.</description>
		<content:encoded><![CDATA[<p>damn!!!what a simple code,thats what i was looking for..thanx man!actually i m trying to learn on my own.</p>
]]></content:encoded>
	</item>
</channel>
</rss>








<!-- analytics977 --> 
