Hi there
I am trying to create a system which enables the user to make
specialMoves
with a onscreen character. Whenever a c, v or b key is being pressed,
the
user "leaves" the moving mode (which is finished, letting the user walk
around and step into poses). He/she then enters the specialMoves mode.

Basicly I start a timer, and then start recording the keys the user is
pressing. These keys I put in a list (at the end).

This is the lingo code I use for that.
case the keypressed of
������� "c":startTimer
������������ specialM.append("c")
������������ member("test").text="De Timer loopt"&&specialM
������� "v":startTimer
������������ specialM.append("v")
������������ member("test").text="De Timer loopt"&&specialM
������� "b":startTimer
������������ specialM.append("b")
������������ member("test").text="De Timer loopt"&&specialM
��� end case
-- To check the C, V or B keys

-- Code underneith to check the ArrowKeys!!

��� case (the keyCode) of
������� 123:specialM.append("123")
����������� member("test").text="SpecialMove"&&specialM
������� 124:specialM.append("124")
����������� member("test").text="SpecialMove"&&specialM
������� 125:specialM.append("125")
����������� member("test").text="SpecialMove"&&specialM
������� 126:specialM.append("126")
����������� member("test").text="SpecialMove"&&specialM
��� end case


The Idea now was to check every exit frame, if the list contained a
legal
specialMove (check if the keyspressed are a magic combination). the
Timer is
reset if time past is to great (35 Ticks), and reset every time the user
presses a key within the period (35).

the problem now is, that the list I get (specialM) is created fine, but
the
arrow keys are repetive very fast. If i press c, v, c arrowUp and then b
the
list shows more then one arrowUp key. this is a problem, since I need to
check if the key was pressed once, twice, or more often.

Can someone help?
The lingo code up here resides inside a on Exitframe Handler.

--
Benjamin
--
�� Incorrect (http://www.incorrect.nl/)


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to