@gamemaker/camera-shake

1.0.1 • Public • Published

camera-shake

GameMaker prefab for camera_shake(). Applies a screen shake effect to the camera over a given duration, with separate magnitudes for red, green, and blue color channels. Try it on GX.games

/**
 * Applies a screen shake effect to the camera over a given duration, 
 * with separate magnitudes for red, green, and blue color channels.
 * Example:
 * camera_shake(0.75, 0.1, 0.15, 0.25);
 *
 * @param {number} time Duration of the shake effect in seconds.
 * @param {number} mag_r Shake magnitude for the red color channel.
 * @param {number} mag_g Shake magnitude for the green color channel.
 * @param {number} mag_b Shake magnitude for the blue color channel.
 */

Package Sidebar

Install

npm i @gamemaker/camera-shake

Weekly Downloads

15

Version

1.0.1

License

MIT

Unpacked Size

48.3 kB

Total Files

4

Last publish

Collaborators

  • emoller