Interactivity sample: Click-controlled movement

User level


Required products

Adobe Animate CC


A less common way of collecting user input is by evaluating clicks on the Stage to signal a change in position. This approach is particularly useful when guiding a character in a game or an avatar to a specific point on the screen.
The sample demonstrates an animation whose path is controlled by clicks on the Stage. Click the Stage to see the animation move toward the click point. Click the buttons to the left to change the behavior of the animation.
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.