|Attention||Topic was automatically imported from the old Question2Answer platform.|
(Sorry, my English isn’t that good)
I am very new to coding and I want to make my character to perform an action when two buttons are pressed at the same time.
For example: (Lshift + Right) to sprint.
Have you tried code such as this?
if Input.is_action_pressed("left_shift") and Input.is_action_pressed("arrow_right"): player.sprint()
Ertain | 2019-03-25 17:10