Game making on mobile

Godot Version

Replace this line with your Godot version

Question

Hello. I’ve been trying to make a game on my mobile device. And I’m following this tutorial problem is the tutorial is for the desktop. So if possible can someone tell me how I can make keybinds into UI for mobile. So I can test the controls. Thank you in advance

I’m not sure what you’re trying to do exactly, but check this article, as it explains the input system pretty well.

What device we are talking about ?

Do you want to make game on this mobile device to some specific platform ?

Do you have keyboard attached and mouse or you plan using touch screen ?

What version of Godot do you use ?

I want to make erge game for mobile.

No I do not have a keyboard or mouse attached

Godot 4.6 I think

Usually easiest way is make joystick on screen with binding action to it .

Also worth mentioning that Godot 4.7 introduces an easy to plug-in VirtualJoystick, so it might be recommendable to upgrade your project to the latest 4.7 instead of trying to implement it yourself. This will take care of your directional inputs.

If you need to simulate key presses, then simply binding actions to TouchScreenButton presses as @iOSxcOder mentioned should suffice.

1 Like