This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
shake_screen [2024/03/04 21:21] – justin | shake_screen [2025/02/21 15:32] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Shake Screen====== | ======Shake Screen====== | ||
---- | ---- | ||
- | Shakes the screen for the specified number of seconds. | + | Shakes the screen for the specified number of seconds. |
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | shake_screen(duration) | + | shake_screen(duration, strength, factor_x, factor_y, magnitude_x, |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|duration|Duration of time to shake the screen (in seconds).|[[Number]]|Yes| | |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| | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
+ | shake_screen(2); | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Remove Zone** function to... | + | Use the **Shake Screen** function to... |
</ | </ | ||