0 votes

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?
Thanks.

Godot version 3.3.2 stable
in Engine by (14 points)

1 Answer

0 votes

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

by (655 points)

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?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.