Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!outbound!ice!colin_fox From: colin_fox@ice.outbound.wimsey.bc.ca (Colin Fox) Message-ID: Organization: Animatrix Newsgroups: comp.sys.amiga.programmer Subject: Re: Timing in a Game Date: 23 Apr 91 22:00:41 PDT >But I have a problem with the delay function. > >I advance each little dude (players and bad-guys) and then have to wait >a little until I can advance them again. They question is how to cause >this wait. I was originally using the Delay function but it is far too >long even with Delay(1), so for right now I am forced to use a for >loop even though I know I will go to hell for it and have my genitals >roasted over an open fire (or something). :) Why don't you use the WaitTOF()? It's a non busy-wait and it's easy. It will syncronize your animations to 60Hz (or if you do 2 WaitTOF()s, 30Hz), and you won't suffer any burns. :):) It's in GfxBase, by the way. +-------------------------------------+----------------------------------+ | Colin_Fox@ice.outbound.wimsey.bc.ca | "...heavy!" | +-------------------------------------+ "There's that word again! Is | | Informal home of SIGGRAPH Vancouver,| there a problem with gravity in | | and proud of it! | the future?" -- Doc | +-------------------------------------+----------------------------------+