— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Shakes the screen for the specified number of seconds. The strength, factor, and magnitude values can be adjusted to customize the screen shake. Experiment with each setting to find what looks best for your particular scenario!
shake_screen(duration, strength, factor_x, factor_y, magnitude_x, magnitude_y)
Argument | Description | Type | Required |
---|---|---|---|
duration | Duration of time to shake the screen (in seconds). | Number | Yes |
strength | Value between 0 and 100. Defaults to 5. | Number | No |
factor_x | Value between 0 and 100. Defaults to 50. | Number | No |
factor_y | Value between 0 and 100. Defaults to 25. | Number | No |
magnitude_x | Value between 0 and 100. Defaults to 80. | Number | No |
magnitude_y | Value between 0 and 100. Defaults to 80. | Number | No |
Results:
Use the Shake Screen function to…