Description
The thing is, when I tried to create my own joystick using the built-in Multitouch Joystick object, my Thumb got stuck. So, for those who have encountered the same problem or simply want to create a custom joystick, this extension provides settings for distance and touch area.
How to use the extension
The extension includes a Joystick behavior for the Thumb, and an action called "Are you having Joy?" that lets you select an object as the Border for the Thumb and set the Zone (the area where the joystick can detect touch). For example, you can add a rectangular object and resize it to fit one half of the device. When you touch outside this rectangular Zone, the joystick will not work.
The action also includes a Radius option. Don't forget to set the origin points of the objects to the correct center.
Checklist
AI usage
Example file
GDevelop-game.zip
Extension file
MultitouchForJoystickCustom.zip
Description
The thing is, when I tried to create my own joystick using the built-in Multitouch Joystick object, my Thumb got stuck. So, for those who have encountered the same problem or simply want to create a custom joystick, this extension provides settings for distance and touch area.
How to use the extension
The extension includes a Joystick behavior for the Thumb, and an action called "Are you having Joy?" that lets you select an object as the Border for the Thumb and set the Zone (the area where the joystick can detect touch). For example, you can add a rectangular object and resize it to fit one half of the device. When you touch outside this rectangular Zone, the joystick will not work.
The action also includes a Radius option. Don't forget to set the origin points of the objects to the correct center.
Checklist
AI usage
Example file
GDevelop-game.zip
Extension file
MultitouchForJoystickCustom.zip