<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Animation - Erasing a Sprite</title>
		<link>http://www.allegro.cc/forums/view/593658</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 16 Oct 2007 01:25:34 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>I was wondering if anybody could expain this:</p><p>To keep it simple, say I want to move a 10 x 20 rectangle around on the screen.  If I try to erase it with a 10 x 20 rectangle of the background color, I get a &quot;trail&quot; in the path of motion.</p><p>I can deal with this okay by making the erasing rectangle a bit bigger, but it doesn&#39;t make sense to me logically.  If I draw a rectangle of the background color of exactly the same size, in exactly the same place the moving rectangle was, shouldn&#39;t it obliterate it?</p><p>Thanks,</p><p>Jim
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Deus Ex Machina)</author>
		<pubDate>Tue, 16 Oct 2007 00:47:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If my understanding is correct, a <b>double buffer</b> system is what you need.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paul whoknows)</author>
		<pubDate>Tue, 16 Oct 2007 00:54:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are you moving it before erasing? Make sure you&#39;re erasing the right spot.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Tue, 16 Oct 2007 01:03:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Make sure you Erase-&gt;Move-&gt;Draw-&gt;Render.<br />Also, you&#39;re drawing and erasing to a single bitmap, right?<br />And if you can&#39;t fix it yourself, some code might help. (using [ code ] tags and showing only relevant code)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Slartibartfast)</author>
		<pubDate>Tue, 16 Oct 2007 01:23:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Make sure you Erase-&gt;Move-&gt;Draw-&gt;Render.
</p></div></div><p>

Yeah, that&#39;s what I was trying to say.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Tue, 16 Oct 2007 01:25:34 +0000</pubDate>
	</item>
</rss>
