Vibrate
Make the player's device vibrate
Description
The vibrate
action allows you to make the player's device vibrate on a given pattern. By vibration we refer to actual vibration, not shaking the screen so this is only supported on mobile devices with such capabilities. If this feature is not supported on the player's device, nothing will happen and the game will continue with it's normal flow.
Action ID: Vibrate
Reversible: Yes
Requires User Interaction: No
Parameters
Single Vibration
You can make the device vibrate only once, for example, the following will make it vibrate for 200ms and then stop.
Pattern Vibration
You can also make the device vibrate following a pattern by providing a list of times, the following will make the device vibrate for 200ms, then 100ms, then 150ms and so on.
Last updated