User Tools

Site Tools


shake_screen

Shake Screen


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:

shake_screen(duration, strength, factor_x, factor_y, magnitude_x, magnitude_y)
ArgumentDescriptionTypeRequired
durationDuration of time to shake the screen (in seconds).NumberYes
strengthValue from 0 to 100. Defaults to 5.NumberNo
factor_xValue from 0 to 100. Defaults to 50.NumberNo
factor_yValue from 0 to 100. Defaults to 25.NumberNo
magnitude_xValue from 0 to 100. Defaults to 80.NumberNo
magnitude_yValue from 0 to 100. Defaults to 80.NumberNo

Example:

shake_screen(2);

Results: Shakes the screen for two seconds using the default values.

Use the Shake Screen function to…


Editor Node:

shake_screen.txt · Last modified: 2025/02/21 15:32 by justin