Home
Name Modified Size InfoDownloads / Week
Among_Us_Guy_Albedo.png-9402d5575f22a86dc5a3290c62e3fc43.s3tc.stex 2021-02-04 2.8 MB
Among_Us_Guy_Albedo.png-9402d5575f22a86dc5a3290c62e3fc43.etc2.stex 2021-02-04 2.8 MB
Among_Us_Guy_Albedo.png-9402d5575f22a86dc5a3290c62e3fc43.md5 2021-02-04 91 Bytes
AmongUs.dae-7c03da68cd72b339ed406fe4156e9645.scn 2021-02-04 110.7 kB
accept-w.png-5d14172905ef883ae53edc9c9d7c3161.stex 2021-02-04 509 Bytes
accept.png-69f9c244a8fc65b0e8e0a9f63861044d.md5 2021-02-04 91 Bytes
accept.png-69f9c244a8fc65b0e8e0a9f63861044d.stex 2021-02-04 682 Bytes
AmongUs.dae-7c03da68cd72b339ed406fe4156e9645.md5 2021-02-04 91 Bytes
accept-w.png-5d14172905ef883ae53edc9c9d7c3161.md5 2021-02-04 91 Bytes
VERSION.md 2021-02-04 10.5 kB
README.md 2021-02-04 2.4 kB
LICENSE 2021-02-04 1.1 kB
project.godot 2021-02-04 2.0 kB
icon.png 2021-02-04 3.3 kB
icon.png.import 2021-02-04 640 Bytes
export_presets.cfg 2021-02-04 6.5 kB
_gitignore 2021-02-04 97 Bytes
default_env.tres 2021-02-04 163 Bytes
Totals: 18 Items   5.7 MB 0

Godot-Virtual-Joystick

A simple virtual joystick for touchscreens, for both 2D and 3D games, with useful options, it supports multitouch.

Made with Godot Engine: https://godotengine.org

OPTIONS:

  • Joystick mode:

    • Fixed: The joystick doesn't move.
    • Dynamic: Every time the joystick area is pressed, the joystick position is set on the touched position.
    • Following: If the finger moves outside the joystick background, the joystick follows it.
  • Vector mode:

    • Real: return a vector with a lenght beetween 0 and 1; useful for implementing different velocity or acceleration.
    • Normalized: return a normalized vector.
  • Directions: The number of directions, e.g. a D-pad is joystick with 4 directions, keep 0 for a free joystick.

  • Simmetry Angle: the angle of simmetry of the directions.

  • Dead zone: If the handle is inside this range, in proportion to the background size, the output is zero.

  • Clamp zone: The max distance the handle can reach, in proportion to the background size.

  • Visibility mode:

    • Always: Always visible.
    • touchscreen only: Visible on touch screens only (will hide() if the device has not a touchscreen).

HELP:

  • The Control parent of the joystick is the area in which the joystick can move in Dynamic or Following mode.
  • For moving the joystick inside is area, select it, right click and turn on "Editable Children" and simply move the 'Background' node. - With "Editable Children" turned on you can also edit the joystick textures and colors.
  • An example scene is provided in the "Test" folder.
  • To be able to use the joystick with the mouse, you have to go to Project settings -> Input Devices -> Pointing, and turn on the option "emulate touch from mouse".

ADVICE ON HOW TO USE:

Create a CanvasLayer node and name it "UI", it'll contain all the UI elements, then add the Joystick scene as a child of the UI node and move it where you prefer (remember to turn on "Editable Children").

Source: README.md, updated 2021-02-04