Virtual Joystick 2D
E

Publisher

evrenselkisilik

Virtual Joystick 2D

2D
Joystick Mobile Input UI 2D Collision Controls Touch

Virtual joystick plugin for mobile games.

virtual-joystick

Virtual joystick plugin for Godot Engine.

Godot Virtual Joystick

Installation

GIT

You can install the plugin with GIT.

cd /path/to/project
mkdir -p addons
cd addons
git clone https://github.com/rohanrhu/virtual-joystick

Usage

Add a Virtualjoystick node.

Add a CollisionShape2D and set a CircleShape2D to that.

Set container and button textures

Texture Settings

Events

controlling

Fires during user control.

trimming

Fires while button is trimming to container's border.

released

Fires when user released the joystick.

Properties

container_texture: Texture

button_texture: Texture

is_mouseover: bool

is_dragging: bool

is_trimming: bool

angle: float

velocity: Vector2

Notices

  • While you are testing it on mouse, you may want to enable Project Settings > General > Input Devices > Pointing > Emulate Touch From Mouse setting.

License

MIT