Sign in to follow this  

Fighting games

This topic is 3807 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

This topic is 3807 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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