delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/14/13:27:10

Message-ID: <33299450.3AB1@swipnet.se>
Date: Fri, 14 Mar 1997 19:09:20 +0100
From: Deltaman <deltaman AT swipnet DOT se>
Reply-To: deltaman AT swipnet DOT se
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: How can I do this?

Hi!

I'm quite new to c programming and I have the following problem.

In my main function I pass a string that contains a direction to
the function 'walk(direction)'
In this function I also give a value to 'int frame_number'

The sprite is defined named like RIGHT_1, RIGHT_2, LEFT_1 and so on

How can I use draw_sprite (in Allegro) to draw the right frame if
I have the right direction and frame_number?
------------------------------------------------------------------------
mailto:deltaman AT swipnet DOT se

Please visit my homepage at http://www.geocities.com/TimesSquare/8240
------------------------------------------------------------------------
______  _______        _______ _______ _______ _______ __   _
 |     \ |______ |         |    |_____| |  |  | |_____| | \  |
 |_____/ |______ |_____    |    |     | |  |  | |     | |  \_|

- Raw text -


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