Input actions pt2 - Godot 3.1 Tutorial ITA
Crystal Bit
Come gestire l'input sfruttando le funzioni della classe Input: "is_action_pressed" e le sue varianti "just_pressed" e "just_released" aiutano a scrivere codice leggibile e facilmente manutenibile. In questo esempio ho creato una scena con un arciere che tende l'arco alla pressione di un tasto e scocca la freccia quando viene rilasciato.
--- DOWNLOAD PROGETTO ---
Link GitHub: https://github.com/crystal-bit/godot-tutorials/blob/master/tutorials/input-actions/README.md
--- ARGOMENTI TRATTATI ---
- Funzioni della classe Input
- Migliorare la leggibilitĂ del codice
- is_action_just_released
- is_action_just_pressed
- is_action_pressed
--- CONTATTI ---
Twitter: https://twitter.com/dav__cri
Blog: https://davcri.github.io/
--- CREDITS ---
Music: "Werq" by Kevin MacLeod Licence: CC BY (http://creativecommons.org/licenses/by/4.0/) Website: https://incompetech.com ... https://www.youtube.com/watch?v=rZXWdbjcNnI
40815976 Bytes