<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=576032618-26112002>Hi
Francis,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=576032618-26112002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=576032618-26112002>A
general technique for avoiding flickering is double-buffering. It consists on
writing everything (scenery, characters, etc) to a buffer and them to draw that
buffer to the screen (in your case, the canvas).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=576032618-26112002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=576032618-26112002>I
don't know of any issues that might prevent this technique to work with Dr.
Scheme.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=576032618-26112002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=576032618-26112002>I
hope it helps,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=576032618-26112002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=576032618-26112002>André</SPAN></FONT></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Francis Lavigne
[mailto:flavigne666@hotmail.com]<BR><B>Sent:</B> Tuesday, November 26, 2002
4:23 PM<BR><B>To:</B> plt-scheme@list.cs.brown.edu<BR><B>Subject:</B>
[plt-scheme] flicker problem in a game coded with
Dr.Scheme<BR><BR></FONT></DIV>For list-related administrative tasks:
http://list.cs.brown.edu/mailman/listinfo/plt-scheme
<DIV>
<DIV>
<P>Hi,</P>
<P>I'm coding a small game with characters moving on a canvas. When I
update the position of all the objects of my scene and then draw my updated
bitmap, the screen flickers. Because I'm trying to make the game
animated, it flickers real fast and the game is almost unplayable.</P>
<P>I'm using a bitmap with a bitmap-dc over a canvas. I redraw each
object of the scene and then draw the bitmap. Is there a way to avoid
the flickering? <BR><BR></P></DIV></DIV><BR clear=all>
<HR>
MSN Search, le moteur de recherche qui pense comme vous ! <A
href="http://g.msn.com/8HMFFR/2024">Cliquez-ici</A> </BLOCKQUOTE></BODY></HTML>