Message-ID: <33299450.3AB1@swipnet.se> Date: Fri, 14 Mar 1997 19:09:20 +0100 From: Deltaman Reply-To: deltaman AT swipnet DOT se MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: How can I do this? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ------------------------------------------------------------------------ ______ _______ _______ _______ _______ _______ __ _ | \ |______ | | |_____| | | | |_____| | \ | |_____/ |______ |_____ | | | | | | | | | \_|