Create motion-related effects on your iOS or Android device using the accelerometer.
⚠️ Best for mobile apps: These features are adapted for mobile applications (web and native). Devices must have an accelerometer. Desktop users can use the mouse to trigger motion events.
Insert a motion sensor
Components and insert the
This is a non-graphical component, it has no visual representation on your screen but is accessible from the
Properties window, customize the Motion Sensor :
- Choose the type of motion: Tilt or Orientation.
- Choose the axis: Horizontal and/or Vertical.
- Define the minimum and maximum value of the axis, i.e. the recognized amplitude.
- Using the accelerometer allows you to recognize changes in speed.
Without further action on your part, the motion sensor is inactive. You can synchronize it with another component (e.g. an image sequence or a scrolling area) or set up an action.
Synchronize another component with the movement of the device
Sequence component, add media and customize the properties.
In the Motion Sensor
Properties window, choose the horizontal axis and keep the default properties.
Synchronization component and in the
Properties window, click
+ ADD COMPONENTS. Choose the Sequence and Sensor.
Set the synchronizable properties:
frames for the sequence,
horizontal axis for the motion sensor.
Trigger an action by a specific tilt/orientation
You can define a specific inclination with which you want to trigger an action. For example, make the response appear when the device is turned over.
Create a marker
First you need to create a
at the desired tilt/orientation.
Properties window, click the
In the Edit window on the left, add one or more markers.
Create the action
Interactivity window and click
Choose as trigger the marker
Choose as action: