Interactivity sample: Joystick-controlled movement
 

User level

Intermediate

Required products

Adobe Animate CC

 

A joystick is a slightly more complex control that collects user input through the illusion of a video game joystick. The joystick is a draggable object that applies a bit of physics to limit its drag movement to a circular area and bobble back into place when released.
The sample demonstrates an animation whose path is controlled by a virtual joystick. Click the joystick handle and drag it from side to side to see the results.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.