Shake camera

Shakes the camera.

Syntax
shake_camera( intensity, time);

Returns
N/A

Basic
// update.gml // Makes the camera shake for 6 frames when the player lands. if ((state == PS_LAND || state == PS_LANDING_LAG) && state_timer == 1) { shake_camera( 8, 6 ); }

Advanced
// Advanced code example if necessary. // If another code block is needed, take a look at this one in the Source Editor.