NOW 100% GMS2 COMPATIBLE!
With this asset you can create custom screen shakes by calling only a single function. This function permits you to set the magnitude of the shake, the type of shaking (from various different styles) as well as fade in, fade out and maintain values to create any type of shaking effect you require.
The effect can be used for a single view in a game, for multiple views, and even if there are no views active in your game (although one will be activated in this case, but only for the duration of the screen shaking effect).
You can fire off multiple screen shake function calls and unless they are for different views they will "stack" in a single instance of the screen shake object (rather than spawn a new instance) and so keep resource use to a minimum.
Should work on all platforms, but note that if your code is setting the view position manually, the positional shakes may not work correctly since they change the x/y position of the view. However the radial shake style will still work and can be used without issues.
Updated to support GameMaker Studio 2. Asset now fully supports GMS2 cameras and layers.