Jump to content

  • Log In with Google      Sign In   
  • Create Account


Combat command detection...


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Zero1   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 August 1999 - 11:09 AM

Hello, there! I was wondering whether anyone knew a good method for detecting streetfighter style commands than this simple method I dreamed up:

Utilise a pair of buffers to accept input :

1- A keystroke buffer

2- A complete command buffer


the keystroke buffer accepts input as is from the keyboard..(or wherever) but also records timing and idle periods. by repeatedly scanning this buffer and checking for recognisable patterns (such as the infamous quarter circle), a seperate routine will then insert commands into the complete command buffer, which the actual engine sees.

I've implemented a small test version of it in QBASIC and it seems to handle twitch response rather well. Does anyone have any comments, suggestions, or better methods?


Sponsor:

#2 ghowland   Members   -  Reputation: 134

Like
Likes
Like

Posted 29 August 1999 - 11:09 AM

This is exactly what you want to do. From there is just takes a lot of tweaking and testing to make sure you can capture all your responses and not give the user the leeway needed to reasonably make them.

-Geoff





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS