From: SPAMGUARDriker AT pipcom DOT com (Matt Riker) Newsgroups: comp.os.msdos.djgpp Subject: Allegro Datafiles Date: Wed, 28 Jan 1998 11:22:15 -0500 Organization: Riker Software Lines: 17 Message-ID: Reply-To: SPAMGUARDriker AT pipcom DOT com NNTP-Posting-Host: 207.61.241.198 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm writing a program that uses Allegro datafiles, reading sprite files from them more specifically. My problem is, the sprite that I want to read from the datafile constantly changes. The normal format for drawing a sprite from the datafile is this: draw_sprite(doublebuffer, datafile[SPRITENAME].dat, 16, 16); But because SPRITENAME is constantly changing, I need to put in a variable instead. I've kind of done a poor job of explaining this, but if anyone has the vaguest idea of what I'm talking about, your help would be appreciated :) Thanks! ____________________________ Matt Riker SPAMGUARDriker AT pipcom DOT com *** Remove SPAMGUARD *** *** when replying! ***