hey

This is a discussion on hey within the A Brief History of Cprogramming.com forums, part of the Community Boards category; How would i get a little char to shoot and walk at the same time?...

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    hey

    How would i get a little char to shoot and walk at the same time?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hey
    By REMY in forum C++ Programming
    Replies: 1
    Last Post: 01-22-2003, 10:06 PM
  2. hey all
    By iain in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-10-2002, 10:22 PM
  3. hey moa news
    By harryP in forum C++ Programming
    Replies: 2
    Last Post: 09-10-2002, 06:59 PM
  4. Hey, check out this project...
    By bluehead in forum C++ Programming
    Replies: 8
    Last Post: 11-07-2001, 05:13 PM
  5. Hey Guys
    By D4050 in forum C Programming
    Replies: 0
    Last Post: 10-01-2001, 06:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21