An old trick used would be to determine where the character would go, then do a CopyRect to copy that portion of the screen, then DrawRect the character onto the screen. When the character needs to be moved, you would just DrawRect the previously saved buffer to restore the screen, call CopyRect on the new position, then DrawRect the character, on and on as the character keeps moving from frame to frame. I haven't tried it in Blitz to see if it's any faster or not. Of course, it would be determined by the type of game. If you're doing a scrolling tile game, you'll probably need to redraw the entire screen again, in which case, a cls probably wouldn't be necessary at all.
|