Joystick In Godot 4 (with mobile test)
A simple video showing how to make a functional joystick in Godot 4.0 using simple vector math and autoloads/singletons. You'll see the joystick in action on an Android device PLUS this is my first video with a handcam!
The implementation here relies on autoloads and basic vector math, making it both efficient and easy to follow. Code snippets are included below to help you get started quickly!
I've also added links to:
Resources for working with autoloads, there are other videos but this is the "original" document for many:
https://gameprogrammingpatterns.com/singleton.html
My older Godot 3 video, where I dive into clamping for joystick controls.
Whether you're upgrading from Godot 3 or new to joystick creation, this video has you covered.
Check it out, and don’t forget to like, comment, and subscribe for more Godot content!
Chapters:
0:00 - Introduction
0:21 - Start making the Joystick
0:56 - How A Joystick Works in Paint
2:10 - Start making the Joystick (cont.d)
5:56 - Programming the joystick
7:58 - Setting up Inputs
11:10 - Making a player to move via the joystick
13:26 - Making an Autoload
15:02 - Moving the player from Autoload + Joystick
16:00 - Extending the joystick
17:33 - Stopping the joystick
19:22 - Trying it on Android
Code:
https://github.com/aimforbigfoot/NAD-LAB-Godot-Projects-4.0/tree/main/joystickgodot4tut
Other Videos By NAD LABS
2025-02-16 | Versus the enchanted |
2025-02-14 | Serendipity during my research #3dprinting |
2025-02-01 | Making Pointing Hands, Fists and Open Hands in Godot VR |
2025-01-29 | Import 2D Pixel Art In Godot 3D With Shadows |
2025-01-27 | Curvy Lines in Godot 4.0 |
2025-01-22 | Streamer Mode in Godot VR (sub viewport - 4.0) |
2025-01-21 | 700866825 seconds after birth |
2025-01-08 | Make an Android LockScreen in Godot |
2024-12-11 | Make Buttons In Godot 4 VR (no plugin) |
2024-12-04 | Build & Launch a Svelte Website in Just 15 Minutes! |
2024-11-30 | Joystick In Godot 4 (with mobile test) |
2024-09-10 | Godot Mapcrafter - Maps Made Simple |
2024-08-30 | Simple 3D Godot Platformer (Long Version) |
2024-08-17 | How to make Transparent Windows in Godot 4 |
2024-07-14 | Simple 3D Godot Platformer in 5 minutes |
2024-06-24 | Making Simple Pong in Godot 4.0 |
2024-06-13 | Map Generation In Godot 4.0 (FastNoiseLite) |
2024-06-02 | The most basic tutorial of Tilemaps in Godot 4.0 |
2024-05-28 | Simple 3D Platformer Godot 4.0 |
2024-01-05 | Godot 4 Android Export Tutorial |
2023-08-11 | Godot 4 Mouse Movements |