View Full Version : hey

01-07-2002, 04:52 PM
How would i get a little char to shoot and walk at the same time?

01-07-2002, 06:58 PM
You will have to place everything in a huge loop. Inside of your loop you continually update the character and when the correct button is pressed you would execute the set of animations that shoots. You may have to draw frames of the character walking and shooting in order for it to look perfect.

To get multiple key presses you will have to write an interrupt handler for the keyboard. Add 128 to the scan code to get the code for multiple presses. This will not work if the NumLock is on and you will get some very strange key events in your program.