#How do I make a script that detects when the player presses a button?
17 messages · Page 1 of 1 (latest)
Button as in a Button node or in key on a keyboard?
Keyboard like pressing A or D
Okay, you have Input.is_action_pressed() for example, which checks if you hold down a button, there’s also Input.is_action_just_pressed() and many more
But before you can use them you have to create some actions/keybinds
This would be under project settings > input map
wait uhh.. how do I get Input?
can I literally just copy paste that
and it'll work with me adding a little more stuff?
As said, first you need some key binds
yeah
Which you have to create
how?
Not necessarily, but try to get as far as you can, if your stuck you can ask for more help here