compsci_godot_albert/_subsections/sec04/lesson-07.org
2025-07-17 01:33:06 +03:00

1.1 KiB
Executable file

Section 04 - Lesson 07 | Flying

Notes

adding actions

default

  1. Project->Project Settings
  2. click on Input Map tab
  3. check 'Show built-In Actions'

    file:../../_share/media/img/albert/section04/lesson-07/E01.png

custom

  1. make sure that 'Show built In Actions' is UNCHECKED
  2. in the 'add new action' textbox, add the name of your actions
  3. selec the action
  4. on the right side of the action line, click on the '+' symbol
  5. 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