[comp.sys.mac] Animation!

Myron-Meier@cup.portal.com (04/08/88)

In Message <8WKEany00VsEFLs08A@andrew.cmu.edu>, es1o+@andrew.cmu.edu writes
>     Ok, here's another problem I'd like some help with.  I'm working
>on a program where several small objects move around in front of a
>background.  The problem is I don't know a good way to replace the
>background after my objects have been erased and moved.  At the
>moment everything (including the background) is a separate picture
>(PICT) resource.  What do I need to do?!?
>
>                              Eric

One thing you might try is to draw the whole thing into an offscreen bitmap
then copybits it onto the screen.  For each frame you erase the offscreen
bitmap, draw the background, then draw the forground objects, and then transfer
it onto the screen.  The only problem with this is that copybitsing into mem
then onto the screen might take longer than you want...