What Are Double Tap Keys?
That's when you make action's that can only be used when a specific key is pressed twice within a certain time period.
lets say you wantd trace thee word "OMG" when "a" is doubletapped. you would use
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !hit) {
hit = true;
if (lastPress && getTimer()-lastPress<500) {
trace("omg");
}
lastPress = getTimer();
} else if (!Key.isDown(Key.SPACE)) {
hit = false;
}
}
thats it!
highly customisable!
double tap left/right to run or while holding down(duck) to roll