Keep arrow key pressed to quickly go through menu options

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rover

I have a menu with 8 different buttons, which is controlled with up and down arrow keys. My problem is that you have to press the arrow key to move one single spot, and it feels quite slow.
How do you make it so that if you keep an arrow key pressed, it starts scrolling quickly through the options?

:bust_in_silhouette: Reply From: Asthmar

Use if input.is_action_pressed('KeyStroke')
instead of using if input.is_action_just_pressed('KeyStroke')

Thanks. Your answer worked, but I was wondering if there is a way to do the same thing without a script. Is there some property in the buttons or the container that allows this?

Rover | 2021-07-14 20:52