Skip to content

Device vibration Reference

This allows to trigger vibrations on mobile devices. Read more explanations about it.

Actions

Vibrate
Vibrate (Duration in ms).

See parameters & details
  • Parameter 0 (🔢 Number): Duration

Technical note: this action internal type (in GDevelop JSON) is DeviceVibration::StartVibration.

Vibrate by pattern
Vibrate (Duration in ms). You can add multiple comma-separated values where every second value determines the period of silence between two vibrations. This is a string value so use quotes.

See parameters & details
  • Parameter 0 (string): Intervals (for example "500,100,200"

Technical note: this action internal type (in GDevelop JSON) is DeviceVibration::StartVibrationPattern.

Stop vibration
Stop the vibration

See parameters & details

There are no parameters to set for this action.

Technical note: this action internal type (in GDevelop JSON) is DeviceVibration::StopVibration.


The Device vibration extension is always installed in all GDevelop projects: there is no need to add it from the Project Manager.

This page is an auto-generated reference page about the Device vibration feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.