<?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: Pixel-Perfect Collision Detection in ActionScript3</title>
	<atom:link href="http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/feed/" rel="self" type="application/rss+xml" />
	<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/</link>
	<description>Gamedev 2.0</description>
	<lastBuildDate>Fri, 12 Mar 2010 00:49:18 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: fede</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-2/#comment-23570</link>
		<dc:creator>fede</dc:creator>
		<pubDate>Fri, 19 Feb 2010 15:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-23570</guid>
		<description>Great, works like a charm</description>
		<content:encoded><![CDATA[<p>Great, works like a charm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indiemaps.com/blog &#187; Building topology in Flash</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-2/#comment-23546</link>
		<dc:creator>indiemaps.com/blog &#187; Building topology in Flash</dc:creator>
		<pubDate>Wed, 13 Jan 2010 05:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-23546</guid>
		<description>[...] game developers have often relied on a pixel-level bitmap test for overlap. As described in an article by Troy Gilbert, It&#8217;s pretty straightforward: you render two display objects to separate color channels, [...]</description>
		<content:encoded><![CDATA[<p>[...] game developers have often relied on a pixel-level bitmap test for overlap. As described in an article by Troy Gilbert, It&#8217;s pretty straightforward: you render two display objects to separate color channels, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-2/#comment-23473</link>
		<dc:creator>Davide</dc:creator>
		<pubDate>Mon, 21 Dec 2009 08:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-23473</guid>
		<description>Hi Gilbert,&lt;br&gt;&lt;br&gt;great class. I would encourage you to continue the development of the class. I tried the CDK class too. Both are great. I encounter problems when i use large object.&lt;br&gt;Please update your class with other feature.&lt;br&gt;&lt;br&gt;Best regards&lt;br&gt;Davide</description>
		<content:encoded><![CDATA[<p>Hi Gilbert,</p>
<p>great class. I would encourage you to continue the development of the class. I tried the CDK class too. Both are great. I encounter problems when i use large object.<br />Please update your class with other feature.</p>
<p>Best regards<br />Davide</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valmaster Flash</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-22096</link>
		<dc:creator>Valmaster Flash</dc:creator>
		<pubDate>Sun, 25 Oct 2009 18:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-22096</guid>
		<description>Hi Troy,

   Magic script.  I&#039;m building a platformer right now and this code is a fundamental building block.  Credit where credit&#039;s due when it&#039;s complete.</description>
		<content:encoded><![CDATA[<p>Hi Troy,</p>
<p>   Magic script.  I&#8217;m building a platformer right now and this code is a fundamental building block.  Credit where credit&#8217;s due when it&#8217;s complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sakthivel</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-21678</link>
		<dc:creator>sakthivel</dc:creator>
		<pubDate>Tue, 29 Sep 2009 05:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-21678</guid>
		<description>hi nice script with a comfortable coding.why you using the difference to draw a second image</description>
		<content:encoded><![CDATA[<p>hi nice script with a comfortable coding.why you using the difference to draw a second image</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-16836</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 15 Jul 2009 16:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-16836</guid>
		<description>Aezon, the functions in the class are static which means they are not within the instance of the class. Just call it like this colDetect.isCollising();</description>
		<content:encoded><![CDATA[<p>Aezon, the functions in the class are static which means they are not within the instance of the class. Just call it like this colDetect.isCollising();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-16784</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 15 Jul 2009 02:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-16784</guid>
		<description>Hi I am using your collision detection and it works great with one execption. The white space is still being used in the collision detection. The pictures have been scaled down from the original size and are rotating at the time of collision. Does that matter, here is the line I am calling it from

CollisionDetection.isColliding(objOne,objTwo,s.stage,true,0.000001)

it is obviously in an if statement, but the contents of the statement shouldn&#039;t affect why its not working. The variable s is the parent container of both objects to the best of my knowledge. The number that you see 0.000001 is the only number I can use to get a true anything larger then that or if the amount = 1 does not return true. If the amount = 0 then it collides but the objects are not visibly touching.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi I am using your collision detection and it works great with one execption. The white space is still being used in the collision detection. The pictures have been scaled down from the original size and are rotating at the time of collision. Does that matter, here is the line I am calling it from</p>
<p>CollisionDetection.isColliding(objOne,objTwo,s.stage,true,0.000001)</p>
<p>it is obviously in an if statement, but the contents of the statement shouldn&#8217;t affect why its not working. The variable s is the parent container of both objects to the best of my knowledge. The number that you see 0.000001 is the only number I can use to get a true anything larger then that or if the amount = 1 does not return true. If the amount = 0 then it collides but the objects are not visibly touching.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aezon</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-16430</link>
		<dc:creator>Aezon</dc:creator>
		<pubDate>Mon, 13 Jul 2009 02:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-16430</guid>
		<description>I am having a problem with your code, I am trying to implement it as shown:

(I renamed the class colDetect, it is easier to type.)

var test:colDetect = new colDetect();

var tester:Boolean =test.isColliding(cursor,test1,stage);
trace(tester);

And it throws this error:

1061: Call to a possibly undefined method isColliding through a reference with static type colDetect.

I have examined this, and perhaps it is a simple mistake, but I don&#039;t see how it would throw this error. Please Help.</description>
		<content:encoded><![CDATA[<p>I am having a problem with your code, I am trying to implement it as shown:</p>
<p>(I renamed the class colDetect, it is easier to type.)</p>
<p>var test:colDetect = new colDetect();</p>
<p>var tester:Boolean =test.isColliding(cursor,test1,stage);<br />
trace(tester);</p>
<p>And it throws this error:</p>
<p>1061: Call to a possibly undefined method isColliding through a reference with static type colDetect.</p>
<p>I have examined this, and perhaps it is a simple mistake, but I don&#8217;t see how it would throw this error. Please Help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-13218</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Tue, 23 Jun 2009 20:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-13218</guid>
		<description>Looks like the code was copied incorrectly, that line in your code should read:

&lt;code&gt;public static function getCollisionPoint(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = 0):Point&lt;/code&gt;

Looks like the blog is converting code to emoticons... sorry!</description>
		<content:encoded><![CDATA[<p>Looks like the code was copied incorrectly, that line in your code should read:</p>
<p><code>public static function getCollisionPoint(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = 0):Point</code></p>
<p>Looks like the blog is converting code to emoticons&#8230; sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://troygilbert.com/2007/06/pixel-perfect-collision-detection-in-actionscript3/comment-page-1/#comment-13215</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 23 Jun 2009 19:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/#comment-13215</guid>
		<description>... it says i have a 1084: Syntax error: expecting rightparen before oint.
public static function getCollisionPoint(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = (0)  oint</description>
		<content:encoded><![CDATA[<p>&#8230; it says i have a 1084: Syntax error: expecting rightparen before oint.<br />
public static function getCollisionPoint(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = (0)  oint</p>
]]></content:encoded>
	</item>
</channel>
</rss>
