Sign in to follow this  
3Dgonewild

Fighting games

Recommended Posts

3Dgonewild    174
Hi again ;). I've been playing mame , "Street fighters" to be exact...and while i was playing , i asked myself "hey,how they do it?" ,"how they track the key presses?". I do understand how a fighting game works , but i just cant figure out HOW they track the key presses. Anyone here willing to explain how they track the keys?

Share this post


Link to post
Share on other sites
Daaark    3553
You mean like for special move input? Just use an array that is large enough to hold the maximum input sequence. Whenever an 'action button' is pressed, you can just check the button presses in the array to see if it matches any attacks.

I remember Chun Li had a spinning kick attack that was down (2 seconds), up + K. So the users presses one of the kick buttons, and you check for "d(2)UK" in the array, to decide whether to launch a kick attack, or a special move.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this