How would i get a little char to shoot and walk at the same time?
How would i get a little char to shoot and walk at the same time?
Code:#if _emo #define stereo_type_i_dislike #endif
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.