STOP Using This Block! 🤦‍♂️❌ Scratch Tutorial

preview_player
Показать описание
Hello Everybody!
Today I'll be showing you why you should avoid this Scratch Block, and which one you should use instead :)

Subscribe if you liked the video

Another block you should stop using ⤵️

Background Music:

#TheSTEAMist #ScratchTutorial
Рекомендации по теме
Комментарии
Автор

I think it's better to use a forever loop with 'if __ key pressed' statements instead because it let's you run code if no keys are pressed and it is also really smooth

Wizdabest
Автор

I used it only when I didn't know the forever loop thing existed...

McVincient
Автор

Can you just
When space key pressed
Repeat until not space key pressed? (Start)
Change X by 10
(End)

J_SuperProGamer
Автор

The issue with forever is that they are limited to 15 presses per second (have a cooldown of 0.03 seconds). Hat blocks can be activated 30 times per second.
However, 2 hat block scripts can't be activated at the same tick. You can't register 2 keys at the same time with them. They overwrite each other. (Edit: not the Makey blocks)
I use forever loops. Hat blocks use more code in big projects, and are laggy sometimes. Plus, the overwriting is an issue.
𝘤𝘭𝘪𝘤𝘬 𝘚𝘩𝘰𝘸 𝘮𝘰𝘳𝘦 𝘧𝘰𝘳 𝘢𝘯 𝘦𝘹𝘢𝘮𝘱𝘭𝘦
Compare these. In this case, the forever loop is more compact:

when ⚑ clicked
forever
| change x by ((<key [right arrow] pressed?> - <key [left arrow] pressed?>) * (10))
| change y by ((<key [up arrow] pressed?> - <key [down arrow] pressed?>) * (10))

⌨when (left arrow) key pressed
change x by (-10)
⌨when (right arrow) key pressed
change x by (10)
⌨when (up arrow) key pressed
change y by (10)
⌨when (down arrow) key pressed
change y by (-10)

Salt_Enjoyer
Автор

I actually think 'If key pressed' is better, as in you can do many things within the player's control. I don't think Makey Makey has not that many or even none

TheOneAndOnlyEpicStick
Автор

Don’t worry I haven’t used it since last year

cringeSpeedrunner
Автор

When _ key pressed:
Repeat until <not (touching _)?>
Move (3) steps
End
End

Spilt_Ice_Cream_Lover
Автор

I discovered this delay one year ago, but thanks for remember me, one question, can we do a colab, cuz I'm a scratch experimented dev too

ItzSebasTime
Автор

what about scrolling? the "when key blocked pressed" block detects up and down when we scroll up and down but not for the "is key pressed?" block

ponali.mememaker
Автор

I thought you were gonna do:
{{
Forever
if key space pressed?
move 10 steps
}}

But your method works too I guess, nice!

mezzoflow
Автор

Solution 2:

when green flag clicked;
forever;
move (10 * <key (space) pressed?>) steps

-

Solution 3:

when green flag clicked;
forever;
wait until <key (space) pressed?>
move (10) steps

_The solution you showed in the video works pretty well, especially for how simple it is, but sometimes if you add too many add-ons, it can get inefficient. Overall, _ *great video!*

LosesAtEverything
Автор

You can use a when key _ is pressed, and then a repeat until Not _ Key Pressed. It’s even more smooth and it’s very easy to make.

Rustdum
Автор

also some people don't use Makey Makey

imaginalexiss
Автор

me, on mobile: *never used it, never will*

morganisaspookypro
Автор

I agree with this video. My friend uses the When () key pressed block from Events, and it is really hard to play any of his games, I have to fix all of his games because of it.

JackyBorderCollie
Автор

hey dude how did you get that font on the blocks, please tell me!!

dixedd_yt
Автор

I don't use this Often, because I'm Bubble Bobbl-ish.

Baburun-Sama
Автор

the thing is that i dont use when|--| pressed block OR makey makey, i use
if key<> pressed
<do something>
just because it works the best

Vortexboi
Автор

i never even used that i just used the if block and use the when "key" pressed block

huzkingdom
Автор

yeaaa... I have about 9 years of experience in Scratch and I've stopped using it after my first month because of the input laaaag

meehdrescher