Hello Godotneers! In part two in this video series about handling input with G.U.I.D.E, we're going to add controller support to the game, that we made in the first part. And we're going to do this in a way that doesn't need any changes to our input handling code. We'll look at how we can seamlessly switch between keyboard and mouse and the controller while the game is running. And we're going to explore how we can show input prompts to the player, so the player knows what to do. Finally we'll look at how we keep these prompts up to date when the player changes between keyboard and controller and our two game modes.
As always, we have an example project to follow along, so fire up your Godot engine and see how easy it can be to support multiple input devices in Godot!
Table of contents
================
00:00 Introduction
01:43 Adding controller support
02:39 Organizing mapping contexts
04:21 Mapping joy axes
07:05 Fixing joystick drift
07:38 Player rotation
10:13 Stick inversion
10:51 Camera control
11:36 Shooting
12:55 Inputs for build mode
15:57 Virtual cursor modifier
18:04 Switching between input schemes
20:07 Detecting which device is used
21:37 Implementing switching
30:54 Input prompts
34:21 Showing a simple input prompt
35:39 Updating prompts on input device change
37:02 Showing icons for inputs
40:43 Mixing prompts with instructions
44:38 Showing situational prompts
48:56 Adding icons to the game UI
49:58 Conclusion
Useful links
==========
The example project we use in this video: https://github.com/godotneers/guide-video/tree/part2-start
G.U.I.D.E documentation: https://godotneers.github.io/G.U.I.D.E/
Part one of this series: https://youtu.be/gNiiaNViaUg
If you'd like, you can support me - https://ko-fi.com/derkork
As always, we have an example project to follow along, so fire up your Godot engine and see how easy it can be to support multiple input devices in Godot!
Table of contents
================
00:00 Introduction
01:43 Adding controller support
02:39 Organizing mapping contexts
04:21 Mapping joy axes
07:05 Fixing joystick drift
07:38 Player rotation
10:13 Stick inversion
10:51 Camera control
11:36 Shooting
12:55 Inputs for build mode
15:57 Virtual cursor modifier
18:04 Switching between input schemes
20:07 Detecting which device is used
21:37 Implementing switching
30:54 Input prompts
34:21 Showing a simple input prompt
35:39 Updating prompts on input device change
37:02 Showing icons for inputs
40:43 Mixing prompts with instructions
44:38 Showing situational prompts
48:56 Adding icons to the game UI
49:58 Conclusion
Useful links
==========
The example project we use in this video: https://github.com/godotneers/guide-video/tree/part2-start
G.U.I.D.E documentation: https://godotneers.github.io/G.U.I.D.E/
Part one of this series: https://youtu.be/gNiiaNViaUg
If you'd like, you can support me - https://ko-fi.com/derkork
- Catégories
- prompts ia
Commentaires