Screen shake with one line [Game Maker | Basics] @1upIndie
Screen shake with one line [Game Maker | Basics]  @1upIndie
Uploaded January 2024 | Updated September 2026, 16 hours ago
This basics video tutorial shows you how to make a screen shake and toggle it off and on with just one line of code.

This is the quick and dirty/easy way how to make it. You simply create an effect layer and set the effect to screen shake. To toggle it off and on you simply set the visibility of this effect layer to on or off (which enables/disables this effect). That's it!

Note: I have done a video years before by taking the camera view and shake that up. YoYo Games inserted this neat (and easier to use) functionality inside GameMaker, so you can use this one also.
youtu.be/HQG91LgxNpk

Graphics shown:
holder-anibat.itch.io/holders-animated-battlers-free-enemies-pack-1
free-game-assets.itch.io/2d-battle-backgrounds
opengameart.org/content/hit-animation-frame-by-frame
opengameart.org/content/animations-blood-hit-and-both-d


👑 Support me and get fresh game art and game maker projects every month:
patreon.com/1upindie

Follow me on:
📸 Instangram: instagram.com/1upindie
🐦 Twitter: twitter.com/1upIndie
💬 Discord: discord.gg/gvr98nb
📜 Udemy: udemy.com/course/become-a-video-game-developer-with-gms-23 (See youtube about page for discount)

CHAPTERS
-------------------------------------------------------------------------------------------------------
0:00 What we will do
0:34 Create an effect layer and set it to screen shake
0:54 What magnitute and shake speed mean
1:20 Toggle sceen shake on/off by setting it to visible/invisible
2:07 Game shown - Narita Boy
Screen shake with one line [Game Maker | Basics]Pathfinding #2 - Better one liner [Game Maker Studio 2 | Basics]Metroidvania Map the easy way - Code  [GameMaker]Update V2022.11 - Functional content [GameMaker]Update V2022.6 - New fx + project feather [GameMaker Studio 2]Direction/vector movement under the hood [Game Maker | Basics]Firebat and Breakoid (dark souls difficulty) [Made in GameMaker]Binding of Isaac/rogue like map #1 [Game Maker Studio 2 | Epic]Your vote counts - Decide on the next series [1up Indie Yt]Grenade thrower [Game Maker Studio 2 | Enemy Ai]Need splash screen artist + new features  [Super Demon Survivors devlog #7]Constructor - The king of data [GameMaker | Advanced]
1up Indie |

Screen shake with one line [Game Maker | Basics]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER