www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/17/04:15:18

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: different speed animations problem!!!
Date: 17 Feb 1997 07:39:24 GMT
Organization: Oxford University
Lines: 12
Message-ID: <5e91vc$du8@news.ox.ac.uk>
References: <3307FEFC DOT 7F18 AT ix DOT netcom DOT com>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Terence Ramos (de-bug AT ix DOT netcom DOT com) wrote:
: Well, you get the idea.  Now i have a rest() function in the do loop
: between each time the sprite is blitted.  I thought this would make it
: at least pretty uniform in the timing.  What could be my problem?  Is
: there a way to make sure it always move at a certain rate?

Try using vsync() instead of rest(...) - this will (a) make the speed uniform
and (b) make the animation smoother.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019