0 Members and 1 Guest are viewing this topic.
:0→K . No keys pressed yet:Lbl LP . Loop until the three keys are pressed in order:If getKey(54) . If 2ND is pressed:→K . The first key's been pressed:ElseIf getKey(48) . Otherwise, if ALPHA is pressed:!If K-1 . If the first key's been pressed:+2→K . Two keys have been pressed:End . End the If :ElseIf getKey(55) . Otherwise, if MODE is pressed:!If K-2 . If the first two keys have already been pressed:Goto LE . We're done:End . End the If :End . End the testing:Goto LP . Go back to main loop:Lbl LE . We're done!
!If getKey(1)Goto END:EndPause 50!If getKey(2)Goto END:EndPause 50...Lbl ENDDisp "EPIC FAILURE".CLEAR RAMAsm(ABCDEF)
Code: (Axe) [Select]:0→K:Lbl LP:If getKey(54):→K:ElseIf getKey(48):!If K-1:+2→K:End:ElseIf getKey(55):!If K-2:Goto LE:End:End:Goto LP:Lbl LE
:0→K:Lbl LP:If getKey(54):→K:ElseIf getKey(48):!If K-1:+2→K:End:ElseIf getKey(55):!If K-2:Goto LE:End:End:Goto LP:Lbl LE
Quote from: Deep Thought on March 18, 2011, 08:13:10 pmCode: (Axe) [Select]:0→K:Lbl LP:If getKey(54):→K:ElseIf getKey(48):!If K-1:+2→K:End:ElseIf getKey(55):!If K-2:Goto LE:End:End:Goto LP:Lbl LEWhat does ->K itself do?*yay. 500th post
wait you could do that? I just started to learn Axe.
:0→K . No keys pressed yet:Lbl LP . Loop until the three keys are pressed in order:While getKey(54) . If 2ND is pressed, don't register any other keys:→K . The first key's been pressed:End . End this loop:While getKey(48) . Otherwise, if ALPHA is pressed, still don't register other keys:!If K-1 . If the first key's been pressed:+2→K . Two keys have been pressed:End . End the If :End . End that loop:While getKey(55) . Otherwise, if MODE is pressed (you get the drift):!If K-2 . If the first two keys have already been pressed:Goto LE . We're done:End . End the If :End . End the final loop:Goto LP . Go back to main loop:Lbl LE . We're done!