Comment on page
Make the player's device vibrate
vibrateaction 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.
Requires User Interaction: No
You can make the device vibrate only once, for example, the following will make it vibrate for 200ms and then stop.
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.
'vibrate 200 100 150 50 200 300'