How do I make the screen shake?

Not favoritedFavorited Favorited 0 favourites
  • 13 posts
From the Asset Store
Add juicy impact to your game with a flexible, high-quality shake effect for sprites, text or the whole screen!
  • Hello, I want the screen shake when the player(sprite) enters the portal(sprite 12), but for some reason it does not. I made a lot of changes but nothing changed. Can someone please help me?

  • I removed it but it still isn’t working. Any other ideas?

  • Try turning this on.

  • It works now, but it kinda ruins my background, because it doesn’t cover the entire screen. Do you know how to fix it?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yeah that's a really annoying issue I've encountered many times before. Screenshake not working without unbounded scrolling is really annoying.

    The solution I've been using recently is a little effect I made called Jitter. This does not work with webGPU so you'll have to disable that if you want to use it. construct.net/en/make-games/addons/1643/jitter

    1. Apply that jitter effect to the entire layout (disable it)

    2. Enable it briefly for the screenshake and tweak the values to your liking

    3. Optional: Use a tween to decrease the magnitude over time to emulate the behavior from the "scroll to" screenshake effect.

    It kinda smears the edges of the screen which may not be ideal but it's really not noticable imo.

  • It works now, but it kinda ruins my background, because it doesn’t cover the entire screen. Do you know how to fix it?

    That's not a problem-just stretch the background, or move the portal away from the edge, and then you won't need to check that box, and nothing will pop out.

    Why do you keep moving the background behind the character every tick? Put the background on the bottommost layer and set the parallax to 0%.

  • When I move the portal down, I need to change the starting position of all of my sprites, which is a lot. If I make the bg bigger it just is more detailed. And if I set the parallax to 0, the bg moves with player instead of covering the screen.

  • When I move the portal down, I need to change the starting position of all of my sprites, which is a lot. If I make the bg bigger it just is more detailed. And if I set the parallax to 0, the bg moves with player instead of covering the screen.

    You can set the color of the bottom layer to sky blue, and then you'll just have a sky there.

    But I don't understand why you say that a 0% parallax will move the background; on the contrary, the entire background will remain stationary regardless of the camera's movements.

  • igortyhon Would preventing the camera from scrolling 20 pixels (or size of the shake magnitude) from the edge of the canvas work?

  • I once faced such a problem myself, after that I always give free zones on all sides, it also helps with scaling, so you can experiment.

    If you can't change anything at all, then you can make the camera shake through "tween "

  • Thanks for the help but I decided to just make one big tiled bg so everything works great

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)