A downloadable asset pack

Buy Now$1.99 USD or more

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.

Purchase

Buy Now$1.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $1.99 USD. You will get access to the following files:

1491902474_com.nocturnegames.screenshake.yymp 3.5 MB

Comments

Log in with itch.io to leave a comment.

(+1)

Love it! Just wanted to give thanks for commenting the code so thoroughly. Makes it easy to use and understand. It took less than five minutes of playing around with it to get familiar with the customization options and getting the shake the way I wanted it to be.

The information page doesn't mention GMS2 anywhere. Is this GMS2 compatible? Also, does it perform well on HTML5?

Hello! The asset is 100% compatible with GMS2... in fact, the assets I have here on itch are ALL for GMS2 only. As for HTML5, I honestly haven't tested but see no reason why it wouldn't work as the asset simply manipulates the view camera, which should be 100% cross platform. Thanks for the interest!