Multitouch joystick and buttons

Activate a joystick or buttons that can be controlled by interacting with a touchscreen.

Authors and contributors to this community extension: VictrisGames, AstroCookie.


Users can interact with the multitouch joystick to specify angle and force values. These values can be used to control other objects in the scene such as movement and rotation, such as for twin-stick shooter games.

Mulitouch buttons can be used whenever a game allows the user to press multiple locations at once.

How to use:

  • Add the joystick behavior to a sprite that will be the joystick
  • Place the joystick object on the scene
  • Run the “Activate joystick” action on every frame and specify the thumb object
  • The joystick thumb object will automatically be created and moved

Tips:

  • Use “Simulate a touch” functions to provide mouse and gamepad controls
  • More than one joystick or button can be used at the same time
  • Joystick and thumb objects should have all sides the same length
  • Thumb object must be smaller than the joystick object

This page is an auto-generated reference page about the Multitouch joystick and buttons extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.