• Advertisement

Archived

This topic is now archived and is closed to further replies.

Combat command detection...

This topic is 6717 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

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

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites

  • Advertisement