Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!stanford.edu!csli!bratt From: bratt@csli.Stanford.EDU (Harry Bratt) Newsgroups: comp.sys.amiga.programmer Subject: hardware sprites Summary: how to make sprites disappear w/o freeing them Keywords: sprites Message-ID: <19672@csli.Stanford.EDU> Date: 5 Jun 91 04:04:17 GMT Organization: Center for the Study of Language and Information, Stanford U. Lines: 24 I'm very new to programming the Amiga and I have a question which I couldn't find an answer to in any of the books I've looked at: How do you make a hardware sprite disappear without doing FreeSprite() ? Is there a safe and sanctioned way of doing this? I can think of some ways but they seem like kludges. I guess a related question is: is freeing it the best way to go? I'd rather just acquire a hardware sprite in the beginning of my program and keep it until the end, making it pop up and disappear when needed (it's just being used as a sort of pop-menu attached to the RMB - it never changes shape, etc.). 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???????? The first way seems more work than necessary and the last 3 sound like kludges to one degree or another. -Harry bratt@csli.stanford.edu