30
submitted 1 year ago by Pmk@lemm.ee to c/godot@programming.dev

Having the ability to rebind controls in a game is a must. It can be simply a matter of player preference, but sometimes it can be essential in letting some people play a game. For example, some keyboard don't have arrow keys, which many games require, but most importantly it is an accessibility feature that lets some people with disabilities to play the game at all.

So, as my first Godot Tutorial, I decided to showcase my take on a smart rebind menu. All the game actions are divided in sets: if two actions are in the same set, it stops them from having the same key, while it allows it otherwise. This can be useful especially for minigames, but also just to divide the actions for gameplay and the one used to navigate menus.

This is also my first post on Lemmy! I hope it won't be the last!

top 1 comments
sorted by: hot top controversial new old
[-] QuazarOmega@lemy.lol 4 points 1 year ago

This is really cool, keep it up!

this post was submitted on 21 Dec 2023
30 points (100.0% liked)

Godot

6020 readers
37 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS