A G.U.I.D.E to Input in Godot - Part 3: Remapping Controls
Автор: Godotneers
Загружено: 2025-06-01
Просмотров: 4567
Hello Godotneers! In this third part of our G.U.I.D.E. series, we'll explore how we can use G.U.I.D.E. to create a settings dialog for our game where the player can change the key bindings for the game. We'll explore how we can tell G.U.I.D.E which actions should be re-bindable, how we display them in the user interface and how we detect inputs and update the key bindings. We'll also have a look at how we can detect and handle conflicts between key bindings. Finally we're looking into how we can save the key bindings to a file and load them again when the game starts.
We continue with our example project from parts one and two, so if you'd like to follow along, fire up your Godot engine and learn how to remap your controls the easy way!
Table of contents
================
00:00 Introduction
00:37 Prerequisites
01:17 Example project
02:00 Adding a simple settings dialog
04:23 Showing the dialog and pausing the game
08:14 Making the mouse visible in settings
12:49 Finding remappable actions
16:37 Marking actions as remappable
19:46 Configuring WASD input bindings
21:14 Building the dialog UI
24:53 Get the input that is bound to an action
28:43 Making more actions remappable
29:34 Excluding actions from remapping
30:29 Implementing the actual re-binding
33:11 Creating an input prompt
35:51 Detecting input
40:34 Updating the mapping to the new input
41:16 Updating the dialog on binding changes
43:37 Handling input collisions
51:13 Limiting input to a certain device
53:32 Aborting input binding
56:23 Making the dialog controller-friendly
1:01:16 Should G.U.I.D.E also control the UI?
1:03:26 Applying the binding to the game
1:04:47 Saving and loading input mappings
1:08:38 Conclusion
Useful links
==========
The example project we use in this video: https://github.com/godotneers/guide-v...
G.U.I.D.E documentation: https://godotneers.github.io/G.U.I.D.E/
G.U.I.D.E change log: https://github.com/godotneers/G.U.I.D...
Part one of this series: • A G.U.I.D.E to input in Godot
Part two of this series: • A G.U.I.D.E to Input in Godot - Part 2: Mi...
The example project: https://github.com/godotneers/guide-v...
If you'd like, you can support me - https://ko-fi.com/derkork
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: