Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!public!valentin From: valentin@public.BTR.COM (Valentin Pepelea) Newsgroups: comp.sys.amiga.programmer Subject: Re: hardware sprites Keywords: sprites Message-ID: <2979@public.BTR.COM> Date: 7 Jun 91 05:12:04 GMT References: <19672@csli.Stanford.EDU> Organization: BTR Communications, Mtn. View, CA Lines: 25 In article <19672@csli.Stanford.EDU> bratt@csli.Stanford.EDU (Harry Bratt) writes: > >How do you make a hardware sprite disappear without doing FreeSprite() ? >So - should I be doing GetSprite(), FreeSprite() all over the place? >Should I be doing a ChangeSprite() to point to a block of 0's? >Should I MoveSprite() outside the bounds of the ViewPort??? >Could I set the height to 0???????? Do not FreeSprite() like crazy. That function might take too long to execute. The way I clear the sprite is by ChangeSprite()'ing to a buffer full of 0's. I could just set the height to 0, but I would have to store the current height into a temporary variable, and I don't want to waste time doing that. >and the last 3 sound like kludges to one degree or another. Not kludges, but choose whatever method suits you best. Valentin -- "An operating system without virtual memory Name: Valentin Pepelea is an operating system without virtue." Phone: (408) 985-1700 Usenet: mips!btr!valentin - Ancient Inca Proverb Internet: valentin@btr.com