Results 1 to 1 of 1

Thread: [VB6] Street Fighter Controls (Flawless Simulation)

  1. #1
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 04
    Location
    Miami Beach, FL
    Posts
    4,849

    [VB6] Street Fighter Controls (Flawless Simulation)

    Ever wanted to know how to throw a Haduken or even perform a Sonic Boom but couldn't figure out how to implement it into your game? Well look no further cause you won't find code like this anywhere else. I managed to pull it off. It might be different than how Capcom did it but its the exact SF Controls! On top of that, just like in Street Fighter, you have under 0.1 seconds to toss your Haduken as well as your Shoryuken and Hurricane Kick. You also can toss a Sonic Boom charging back for 2 seconds or more, press forward and the punch button. What I did was put the control info into 2 separate strings, one for motion and the other for charge. The motion string is cleared after 0.1 sec while the charge is cleared once it's neutral. Enjoy the code.

    Use Numpad 8, 5, 4, and 6 for Up Down, Forward, Backward.
    Use A S D for Light Punch, Medium Punch, Heavy Punch
    Use Z X C for Light Kick, Medium Kick, Heavy Kick
    Attached Files Attached Files
    Last edited by Hack; Nov 8th, 2011 at 05:58 AM. Reason: Added Platform Version For Clarity
    Useful Forum Tips:

    - If you found any post that was useful, please consider rating their post

    - Give sensible thread titles, please!
    - Be sure to use [HIGHLIGHT=VB][/HIGHLIGHT] tags when posting code written in VB.
    - Write posts like a conversation, not like an email. That way you can avoid saying "Dear so and so" in every post.
    - When your problem is solved, go up to Thread Tools and click on Mark Thread Resolved

    My Contributions: Massive DirectX 2D Tutorials For VB5/VB6/VB.NET || 3D Engine In Pure VB || Friction Force ||DJ Turntable Simulation || Scratching Wavs || Time Based Movement || Newton Physics Simulation || Managed Game Loop || Rigid Body Collision Detection || World of Warcraft RGB Battle System || Bosskillers (World of Warcraft 2D Clone) || Street Fighter Controls (Flawless Simulation) || A* Pathfinding (VB6 & VB.NET) *UPDATED || *NEW* Nintendo Entertainment System Emulator (VB6) || *NEW* Video Game Making Tips (VB6 & VB.Net)

    Expert. Ask me anything NES!

    My Smilies:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •