<?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: Challenge #7: Why Collisions Do Not Work?</title>
	<atom:link href="http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/</link>
	<description>I bake games. Indie style.</description>
	<lastBuildDate>Thu, 16 May 2013 13:23:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: sakura games</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22206</link>
		<dc:creator>sakura games</dc:creator>
		<pubDate>Fri, 24 Nov 2006 15:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22206</guid>
		<description>you forgot to turn  your monitor on</description>
		<content:encoded><![CDATA[<p>you forgot to turn  your monitor on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Birkett</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22110</link>
		<dc:creator>Jake Birkett</dc:creator>
		<pubDate>Thu, 23 Nov 2006 14:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22110</guid>
		<description>doh! :-D</description>
		<content:encoded><![CDATA[<p>doh! :-D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juuso - Game Producer</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22109</link>
		<dc:creator>Juuso - Game Producer</dc:creator>
		<pubDate>Thu, 23 Nov 2006 14:16:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22109</guid>
		<description>@Toni: That&#039;s correct. :) I told you it was a memory issue... ;)

@JR: uh..</description>
		<content:encoded><![CDATA[<p>@Toni: That&#8217;s correct. :) I told you it was a memory issue&#8230; ;)</p>
<p>@JR: uh..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J.R.</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22106</link>
		<dc:creator>J.R.</dc:creator>
		<pubDate>Thu, 23 Nov 2006 13:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22106</guid>
		<description>I once encountered a problem with collisions. It was funny because its one of those occasions where since the code does exactly what you wanted, it gives you an anomaly. Basically it was a tiled map game where you see the entities from above ( picture zelda for the snes if you&#039;d like ). Now every entity had a bounding box to collide with the blockade type tiles, in which they also had bounding boxes. So its a basic rectangular BB collision scene. Now, what i used to do is that when an entity wanted to move, i moved its position, and the BB with it, along the tilemap and then checked to see if it collided with the blockade type tiles. If it did, i would then realign the entity with the tilemap, so that it would be touching the blockade, not overlapping it. The code in itself worked nicely. Now here&#039;s the problem. Suppose you have a wall of blockade type tiles, like a whole line of it on the tilemap. Now suppose an entity, that has a rectangular BB is moving downards AND left. What would happen sometimes is that the BB would overlap 2 blockade types in the tilemap. I made the code recognize that and realign itself with the positions of the blockade tiles. So since its moving to the left, it would realign itself with the tilemap it overlapped. Like i said, this was done by moving the entity to back to the right in this case. Since it also overlapped the blockade tile directly below it, it would also realign it to go back up again. Now if you keep this scene going a few times you&#039;ll notice whats goin on. The entity that should scroll along the wall isn&#039;t moving! Took me a while to understand the why of it. I got it solved now, so it&#039;s one of the many other bugs from the past heh.</description>
		<content:encoded><![CDATA[<p>I once encountered a problem with collisions. It was funny because its one of those occasions where since the code does exactly what you wanted, it gives you an anomaly. Basically it was a tiled map game where you see the entities from above ( picture zelda for the snes if you&#8217;d like ). Now every entity had a bounding box to collide with the blockade type tiles, in which they also had bounding boxes. So its a basic rectangular BB collision scene. Now, what i used to do is that when an entity wanted to move, i moved its position, and the BB with it, along the tilemap and then checked to see if it collided with the blockade type tiles. If it did, i would then realign the entity with the tilemap, so that it would be touching the blockade, not overlapping it. The code in itself worked nicely. Now here&#8217;s the problem. Suppose you have a wall of blockade type tiles, like a whole line of it on the tilemap. Now suppose an entity, that has a rectangular BB is moving downards AND left. What would happen sometimes is that the BB would overlap 2 blockade types in the tilemap. I made the code recognize that and realign itself with the positions of the blockade tiles. So since its moving to the left, it would realign itself with the tilemap it overlapped. Like i said, this was done by moving the entity to back to the right in this case. Since it also overlapped the blockade tile directly below it, it would also realign it to go back up again. Now if you keep this scene going a few times you&#8217;ll notice whats goin on. The entity that should scroll along the wall isn&#8217;t moving! Took me a while to understand the why of it. I got it solved now, so it&#8217;s one of the many other bugs from the past heh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni MÃ¤kinen</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22096</link>
		<dc:creator>Toni MÃ¤kinen</dc:creator>
		<pubDate>Thu, 23 Nov 2006 13:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22096</guid>
		<description>Forgot to actually call the function? :)</description>
		<content:encoded><![CDATA[<p>Forgot to actually call the function? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Fisher</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22094</link>
		<dc:creator>Tim Fisher</dc:creator>
		<pubDate>Thu, 23 Nov 2006 11:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22094</guid>
		<description>Hint: Are you thinking too much about erroneous code rather than the root of the problem?</description>
		<content:encoded><![CDATA[<p>Hint: Are you thinking too much about erroneous code rather than the root of the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juuso - Game Producer</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22093</link>
		<dc:creator>Juuso - Game Producer</dc:creator>
		<pubDate>Thu, 23 Nov 2006 11:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22093</guid>
		<description>@soniCron: lol, no :)
@Jake: nope.</description>
		<content:encoded><![CDATA[<p>@soniCron: lol, no :)<br />
@Jake: nope.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Birkett</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22089</link>
		<dc:creator>Jake Birkett</dc:creator>
		<pubDate>Thu, 23 Nov 2006 09:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22089</guid>
		<description>Failed to use BMax collision layers properly?  Or was trying to collide with an empty image! Thus no collision.</description>
		<content:encoded><![CDATA[<p>Failed to use BMax collision layers properly?  Or was trying to collide with an empty image! Thus no collision.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soniCron</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22085</link>
		<dc:creator>soniCron</dc:creator>
		<pubDate>Thu, 23 Nov 2006 09:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22085</guid>
		<description>He erroneously chose to use a non-managed programming language? ;)</description>
		<content:encoded><![CDATA[<p>He erroneously chose to use a non-managed programming language? ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Fisher</title>
		<link>http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-do-not-work/comment-page-1/#comment-22080</link>
		<dc:creator>Tim Fisher</dc:creator>
		<pubDate>Thu, 23 Nov 2006 08:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/11/23/challenge-7-why-collisions-does-not-work/#comment-22080</guid>
		<description>I know the answer. We&#039;ll it was me that made the stoopid mistake :)</description>
		<content:encoded><![CDATA[<p>I know the answer. We&#8217;ll it was me that made the stoopid mistake :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
