delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/28/12:15:10

From: dark0wl AT hotmail DOT com (Dark0wl)
Newsgroups: comp.os.msdos.djgpp
Subject: Pausing the game loop/RPG character conversations
Date: 28 Oct 2002 09:03:45 -0800
Organization: http://groups.google.com/
Lines: 15
Message-ID: <ff72e526.0210280903.52edb3d4@posting.google.com>
NNTP-Posting-Host: 80.3.32.5
X-Trace: posting.google.com 1035824626 18962 127.0.0.1 (28 Oct 2002 17:03:46 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 28 Oct 2002 17:03:46 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I've just started using the Allegro library to program games.
I'm writing an RPG, but I've stumbled accross a problem.

In my game loop, I check to see if the user has pressed the "G" key.
If they have I want to be able to pause input and character movement
and display a rectangle with a sentence in it.

At the moment the rectangle only appears if you hold down the "G" key,
because my game loop gets through about 60 cycles per second.

Any help would be greatly appreciated,

Adam.

- Raw text -


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