<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Color collision</title>
		<link>http://www.allegro.cc/forums/view/564579</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 07 Feb 2006 15:25:46 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,well, in 2d fitghing game (dragon ball), when the player does a &quot;special power&quot; i use animated gif. And they have transparent parts.</p><p>I want to the collision detection something like this:<br />(this will for example when  goku launchs a kamehameh)</p><p>if (the color of the player1.posX+player1.width is not transparent)<br />   if (player1.posx+player1.width &gt;= player2.posX )<br />     collide = true</p><p>any ideas?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miguel meza)</author>
		<pubDate>Tue, 07 Feb 2006 00:35:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Pixel perfect collisions...<br /><a href="http://www.allegro.cc/depot/PixelMASK">PixelMask</a> or Ppcol.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (OICW)</author>
		<pubDate>Tue, 07 Feb 2006 00:40:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>that is good, but it doesnt works perfeclty for what i want...</p><p>isnt there a way to do what i want?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miguel meza)</author>
		<pubDate>Tue, 07 Feb 2006 03:02:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What do you want? If you need to read only one pixel from a player&#39;s bitmap, then use getpixel with a correct offset.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Tue, 07 Feb 2006 03:33:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i only need to know i a pixel in a certain position is transparent or not......<br />how can i do it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miguel meza)</author>
		<pubDate>Tue, 07 Feb 2006 05:46:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>if using something other than 8bit, you do( not 100% sure on what transparent color is):</p><p>if( _getpixel( whatever pixel) == makecol( 255, 255, 0))<br />  pixel is transparent</p><p>If its 8bit then replace makecol( ...) with 0 I think.</p><p>I may be wrong.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SonShadowCat)</author>
		<pubDate>Tue, 07 Feb 2006 06:25:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>thanks you, that was what i wanted......
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miguel meza)</author>
		<pubDate>Tue, 07 Feb 2006 08:31:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s best to use bitmap_mask_color:</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">if</span><span class="k2">(</span> <a href="http://www.allegro.cc/manual/_getpixel" target="_blank"><span class="a">_getpixel</span></a><span class="k2">(</span> bitmap, x, y <span class="k2">)</span> <span class="k3">=</span><span class="k3">=</span> <a href="http://www.allegro.cc/manual/bitmap_mask_color" target="_blank"><span class="a">bitmap_mask_color</span></a><span class="k2">(</span> bitmap <span class="k2">)</span><span class="k2">)</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Tue, 07 Feb 2006 15:25:46 +0000</pubDate>
	</item>
</rss>
