diff --git a/_share/media/img/albert/section04/lesson-07/E01.png b/_share/media/img/albert/section04/lesson-07/E01.png new file mode 100644 index 0000000..bb6c0fb Binary files /dev/null and b/_share/media/img/albert/section04/lesson-07/E01.png differ diff --git a/_subsections/sec04/lesson-07.org b/_subsections/sec04/lesson-07.org new file mode 100644 index 0000000..f960ace --- /dev/null +++ b/_subsections/sec04/lesson-07.org @@ -0,0 +1,31 @@ +#+title: Section 04 - Lesson 07 | Flying +#+HTML_HEAD: +#+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 diff --git a/_subsections/sec04/lesson-08.org b/_subsections/sec04/lesson-08.org new file mode 100644 index 0000000..993171a --- /dev/null +++ b/_subsections/sec04/lesson-08.org @@ -0,0 +1,9 @@ +#+title:Flyin#+title: Section 04 - Lesson 08 | Collisions: Hitting the floor +#+HTML_HEAD: +#+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/45069817#overview][S04:L53.08 - video]] + +* Notes