compsci_godot_albert/_subsections/sec04/lesson-07.org

32 lines
1.1 KiB
Org Mode
Raw Permalink Normal View History

2025-03-02 14:15:55 +02:00
#+title: Section 04 - Lesson 07 | Flying
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../../_share/media/css/godot.css" />
#+OPTIONS: H:6
* Links
- [[../../toc.org][TOC - Godot Notes]]
- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45069815#overview][S04:L52.07 - video]]
* Notes
** adding actions
*** default
1. Project->Project Settings
2. click on Input Map tab
3. check 'Show built-In Actions'
#+attr_html: :width 800
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