Want to use a controller in your games?
First of all this script is for a single controller on the GD5 version only!
I use a Xbox controller.
I have created an external event that you must add to your scene so that you can use the controller.
Download the project below it contains the example “Platformer” with the support of the controller.
You can move the player with the left joystick and jump with RT.
The other buttons are not configured but you can already see how the events work!
The signal passes through scene variables that are created in the script directly.
(Tips : When you call a variable that does not exist GD will create this variable automatically)
This variable is then used in events, see “Axes” and “Buttons” groups.
This is now included with extension inside GDevelop 5, for know how find extension follow this link :
Migration guide :
#gamepad #controller #manette #xbox #ps3 #ps4