User Tools

Site Tools


shake_screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
shake_screen [2024/03/04 21:20] justinshake_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. 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!
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-shake_screen(duration)+shake_screen(duration, strength, factor_x, factor_y, magnitude_x, magnitude_y)
 </code> </code>
  
 ^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);
 </code> </code>
-//Results://+//Results:// Shakes the screen for two seconds using the default values.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Remove Zone** function to...+Use the **Shake Screen** function to...
 </WRAP> </WRAP>
  
shake_screen.1709616027.txt.gz · Last modified: 2024/03/04 21:20 by justin