shake_camera

Sets the camera shake.

ArgumentTypeDescription
intensity:realThe intensity of the camera shake
time:realThe time it should shake for, in frames

Note that this will override any other camera shake currently happening.

Example, called from update.gml:

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