1.1 KiB
Executable file
1.1 KiB
Executable file
Section 04 - Lesson 07 | Flying
Notes
adding actions
default
- Project->Project Settings
- click on Input Map tab
-
check 'Show built-In Actions'
file:../../_share/media/img/albert/section04/lesson-07/E01.png
custom
- make sure that 'Show built In Actions' is UNCHECKED
- in the 'add new action' textbox, add the name of your actions
- selec the action
- on the right side of the action line, click on the '+' symbol
-
add the keystroke
- click inside the textbox and hit the keystroke you want
- in the lower part of the dialog select the actual input
implementing
-
use the Input class as a Singleton
- use Input.is_action_just_pressed bc actions get processed so fast
- add the name of the action to the func call