Sets the camera shake.
Argument | Type | Description |
---|---|---|
intensity | :real | The intensity of the camera shake |
time | :real | The 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 )
}