<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: Movement and simple hittest]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Mon, 23 Nov 2009 01:15:03 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment4704</link><description><![CDATA[I liked it, and I made a script I think it's better:
onClipEvent (enterFrame) {
	if (Key.isDown(Key.LEFT)) {
		_x = _x-2;
	}
	if (Key.isDown(Key.UP)) {
		_y = _y-2;
	}
	if (Key.isDown(Key.RIGHT)) {
		if (hitTest(_level0.wall) == false) {
			_x = _x+2;
		}
	}
	if (Key.isDown(Key.DOWN)) {
		_y = _y+2;
	}
}
<br/><br/>
(Comment posted by Daniel at 7:21 pm, Mon 16th Jul 2007)]]></description><author>no@spam.com (Daniel)</author><pubDate><![CDATA[Mon, 16 Jul 2007 19:21:30 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment4704</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment12724</link><description><![CDATA[Thanks man I've been looking for something like this<br/><br/>
(Comment posted by Rob at 2:01 pm, Wed 4th Mar 2009)]]></description><author>no@spam.com (Rob)</author><pubDate><![CDATA[Wed, 04 Mar 2009 14:01:23 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment12724</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment13181</link><description><![CDATA[<tt>
onClipEvent (enterFrame) { 
  if (Key.isDown(Key.LEFT)) 
    { _x = _x-2; } 
  if (Key.isDown(Key.UP)) 
    { _y = _y-2; } 
  if (Key.isDown(Key.RIGHT)) 
    { if (hitTest(_level0.wall) == false) { _x = _x+2; } } 
  if (Key.isDown(Key.DOWN)) 
    { _y = _y+2; } 
} 
<tt>

// FTFY, Daniel<br/><br/>
(Comment posted by Physivic at 12:02 pm, Wed 1st Jul 2009)]]></description><author>no@spam.com (Physivic)</author><pubDate><![CDATA[Wed, 01 Jul 2009 12:02:07 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment13181</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment13182</link><description><![CDATA[hm forgot /

nobody's looking anyway<br/><br/>
(Comment posted by Physivic at 12:03 pm, Wed 1st Jul 2009)]]></description><author>no@spam.com (Physivic)</author><pubDate><![CDATA[Wed, 01 Jul 2009 12:03:33 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment13182</guid></item><item><title><![CDATA[Comment #5]]></title><link>http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment13561</link><description><![CDATA[The wall code doesnt work on mine the ball just goes straight through, did i name the wall wrong or something<br/><br/>
(Comment posted by Alex at 2:26 pm, Sun 11th Oct 2009)]]></description><author>no@spam.com (Alex)</author><pubDate><![CDATA[Sun, 11 Oct 2009 14:26:30 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/61/1/Movement-and-simple-hittest/Page1.html#Comment13561</guid></item></channel></rss>