This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| shake_screen [2025/02/17 16:07] – justin | shake_screen [2025/02/21 15:32] (current) – justin | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ====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%> | ||