Page 1 of 1

Arrowkey lag

Posted: Sun Dec 14, 2014 11:06 pm
by Peacfulrvr
In my game if you press the arrowkey it moves. If you hold the arrowkey down there is a lag then it continues moving without repeated pressing and releasing. It seems like there should be something like mousestilldown that works with arrowkeys. Is there a way to do that?

Re: Arrowkey lag

Posted: Sun Dec 14, 2014 11:24 pm
by jmburnod
Hi Peacfulrvr,
If you want move a control to the direction of the last arrowkey pressed, you have to use a "send in time" loop.
When you press an arrow key, you set a customprop of the control that move
At each loop, LC gets the direction and move the control to the direction according the arrokey pressed.
I understand correctly what you want ?
The next step is decide what stop it.
Best regards
Jean-Marc