— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
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 from 0 to 100. Defaults to 5. | Number | No |
factor_x | Value from 0 to 100. Defaults to 50. | Number | No |
factor_y | Value from 0 to 100. Defaults to 25. | Number | No |
magnitude_x | Value from 0 to 100. Defaults to 80. | Number | No |
magnitude_y | Value from 0 to 100. Defaults to 80. | Number | No |
Results:
Use the Shake Screen function to…