[futurebasic] GWorld comet blur

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2002 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie@...>
Date: Mon, 28 Jan 2002 10:55:33 +0000
Dear GWorld Experts,
I'm working on an app which, at the moment, simply bounces a circle around
the screen (similar to the GWorld Example on the CD) and my code is based on
Bill's GWorld Tutor.

Is there any way to eliminate the comet blur effect during animation?

My/Bill's animate function is as follows:


local fn animate
dim as rect dirtyRect
'~'1
dirtyRect = gCarRect
FN copyBits(gBackgroundWorld,gScratchWorld,@gCarRect,@gCarRect,0)

offsetrect(gCarRect,gDeltaX,gDeltaY)
if gCarRect.left < 2 then gDeltaX = 2
if gCarRect.right > 638 gDeltaX = -2
if gCarRect.top < 1 gDeltaY = 1
if gCarRect.bottom > 479 gDeltaY = -1

FN copyBits(gSpotsWorld,gScratchWorld,@gCarSrcRect,@gCarRect,_transparent)
unionrect(@dirtyRect,@gCarRect,@dirtyRect)
FN copyBits(gScratchWorld,gScrn,@dirtyRect,@dirtyRect,0)
end fn


BTW I'm using PG.

TIA
Bernie