Arrowkey lag
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 34
- Joined: Mon Nov 03, 2014 7:11 pm
Arrowkey lag
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
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
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
https://alternatic.ch