Discuss Scratch
- DASniperIC
-
64 posts
Screenshaking block
Now, I know that this script exists
It would probably look like this:
the intensity part is the same as the intensity of the ‘pick random’ numbers in a sprite shaking workaround script
Send link to original suggestion if this was already suggested
go to x: ((0) + (pick random (-10) to (10))) y: ((0) + (pick random (-10) to (10)))but that only shakes sprites, and making the entire project screen shake in a game isn’t easy or possible altogether. Instead, why not have the entire project screen shake with a script?
It would probably look like this:
shake screen for [1] secs [10] intensity:: sensingIt basically acts the same as the
go to x: ((0) + (pick random (-10) to (10))) y: ((0) + (pick random (-10) to (10)))script but it shakes the entire project screen, with a black background underneath the screen.
the intensity part is the same as the intensity of the ‘pick random’ numbers in a sprite shaking workaround script
Send link to original suggestion if this was already suggested
Last edited by DASniperIC (Feb. 3, 2022 09:43:14)
- k0d3rrr
-
1000+ posts
Screenshaking block
I've fixed the block. Here's what it might look like:
I now support this idea because it could make a cool explosion shaking effect.
shake screen for [1] secs at [10] intensity:: motion
I now support this idea because it could make a cool explosion shaking effect.
Last edited by k0d3rrr (Feb. 26, 2022 04:03:09)
- DASniperIC
-
64 posts
Screenshaking block
Then don’t set it at high intensity I've fixed the block. Here's what it might look like:shake screen for [1] secs at [10] intensity:: motion
I semi-support this idea, as shown by the pros and cons of this idea:
Pros:
-Helpful for making a meme or an explosion effect.
-Shakes the WHOLE screen and not just the sprites.
Cons:
-If set at high intensity, it could give someone who has epilepsy seizures.
-It might also lag slow computers and mobile devices.
- yavuz61035
-
500+ posts
Screenshaking block
what about a limit (probably 1/2 or 1/4 of the size of the axis)
more (probably useless) blocks:
more (probably useless) blocks:
shake screen [left-right v] with intensity [10] :: motion // can only shake up to 120
shake screen [up-down v] with intensity [10] :: motion // can only shake up to 90
shake screen [all v] with intensity [10] :: motion // can only shake up to 105
stop shaking [left-right v] :: motion
stop shaking [up-down v] :: motion
stop shaking [all v] :: motion
Last edited by yavuz61035 (Feb. 3, 2022 14:20:31)
- Bituvo
-
15 posts
Screenshaking block
You could actually very easily do this.
First, go to the stage.
Make two global variables: shakeX and shakeY.
You can set these to random values between -N and N whenever you want to shake the screen.
Now, say you have a movement script for each sprite. It's going to a certain x-position and y-position, right?
First, go to the stage.
Make two global variables: shakeX and shakeY.
You can set these to random values between -N and N whenever you want to shake the screen.
Now, say you have a movement script for each sprite. It's going to a certain x-position and y-position, right?
go to x: (foo) y: (bar)Simply add shakeX and shakeY to foo and bar (or whatever they might be):
go to x: ((shakeX) + (foo)) y: ((shakeY) + (bar))
- dave-alt-4
-
1000+ posts
Screenshaking block
sure , it'll be fun doing that in 100 sprites. You could actually very easily do this.
First, go to the stage.
Make two global variables: shakeX and shakeY.
You can set these to random values between -N and N whenever you want to shake the screen.
Now, say you have a movement script for each sprite. It's going to a certain x-position and y-position, right?go to x: (foo) y: (bar)Simply add shakeX and shakeY to foo and bar (or whatever they might be):go to x: ((shakeX) + (foo)) y: ((shakeY) + (bar))
- hi875230163394
-
1000+ posts
Screenshaking block
Support as long as there is an epilepsy warning when you start up a project similar to ones seen when the username block in any project that uses the block
- DASniperIC
-
64 posts
Screenshaking block
all of your ideas are pretty good ( @Bituvo ’s is the smartest idea). the ‘bump’ ones seemingly provide no context to me whatsoever
and yes, i support the idea of adding an epilepsy warning or a limit to how shaky you can make the screen.
and yes, i support the idea of adding an epilepsy warning or a limit to how shaky you can make the screen.
- Xoffhia
-
500+ posts
Screenshaking block
You could actually very easily do this.
First, go to the stage.
Make two global variables: shakeX and shakeY.
You can set these to random values between -N and N whenever you want to shake the screen.
Now, say you have a movement script for each sprite. It's going to a certain x-position and y-position, right?go to x: (foo) y: (bar)Simply add shakeX and shakeY to foo and bar (or whatever they might be):go to x: ((shakeX) + (foo)) y: ((shakeY) + (bar))
What if people don't know how to make this complicated coding? And sure, they can just use this, but how would they understand it?
But if it already has a script to it, then I am not sure about adding this block. It will simplify doing it, though.
- banana439monkey
-
1000+ posts
Screenshaking block
i mean idk choice is cool but it personally makes me feel rather uncomfortable
Banana
Banana
- k0d3rrr
-
1000+ posts
Screenshaking block
This topic has been brought back to life.
In other words, bump.
In other words, bump.

Last edited by k0d3rrr (March 21, 2022 02:44:15)
- k0d3rrr
-
1000+ posts
Screenshaking block
What's this? A bump!
And not:
Bring
Up
My
Post
Instead, it's bump, as in “Bump this topic to the top of the page!”
And not:
Bring
Up
My
Post
Instead, it's bump, as in “Bump this topic to the top of the page!”
- k0d3rrr
-
1000+ posts
Screenshaking block
OH NO! I forgot what a bump is!
*goes to Advanced (Off-)Topics*
*goes to Questions about Scratch (or Random Stuff)*
Anyways, that was a long bump.
*goes to Advanced (Off-)Topics*
That wasn't helpful at all! Umm, bump stands for:
Better
Use
Modified
Python
*goes to Questions about Scratch (or Random Stuff)*
And that was the end of… whatever that thing was.A bump is an area in the ground that is not even with the groundNo, no, check out A bump is an area in the ground that is not even with the groundthis article that talks about what a ‘bump’ is!Thanks! I'll close this topics now…No, no, check out A bump is an area in the ground that is not even with the groundthis article that talks about what a ‘bump’ is!
Anyways, that was a long bump.
- Crow_Boy08
-
1000+ posts
Screenshaking block
you could make every sprite have the shake script and then make the backdrops a sprite so you can ummm make the whole screen shake
- twogadugary
-
100+ posts
Screenshaking block
I feel like this wouldn't be versatile enough for it to fit in Scratch - every Scratch feature can be used in many ways and often teaches a part of real programming. While this block would add a feature that's incredibly painful to recreate without it, there's not many scenarios where this would be needed, and it'd end up being one of those blocks many users go their entire time on Scratch without using.
- musicROCKS013
-
1000+ posts
Screenshaking block
so, would this be an entirely new block or an extension?