delorie.com/archives/browse.cgi | search |
From: | James W Sager Iii <sager+@andrew.cmu.edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Sprite movement? |
Date: | Mon, 16 Feb 1998 17:43:16 -0500 |
Organization: | Junior, MCS Undeclared, Carnegie Mellon, Pittsburgh, PA |
Lines: | 7 |
Message-ID: | <UouA44e00iWV0_wMk0@andrew.cmu.edu> |
References: | <01bd3b2e$7c83f8c0$c151dece AT stachowiak> |
NNTP-Posting-Host: | po6.andrew.cmu.edu |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
If you want to refresh the background where the sprite once was, a good method for doing it is to pick up the background where the sprite is going to be in a bitmap the size of the sprite. When you go to move the sprite, put the bitmap you picked up earlier over the sprite, and then pick it up where the sprites gonna be before you draw the sprite, repeat as needed :)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |