Thread: key combo!
View Single Post
  #2  
Old 05-25-2012, 06:48 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
You'll have to cache key strokes for that. For "A A S", start by checking if the player hits A. The next time he hits a key, check if it's "A" again and if the time passed since the last key stroke is not too long (some sort of timeout, up to you). Do that again but this time for the "S". If everything's fine, do whatever you want to do.
Reply With Quote