Basic Movement 🏃‍♂️Scratch #shorts

preview_player
Показать описание
Basic Movement with arrow keys in Scratch 3.0
Рекомендации по теме
Комментарии
Автор

An explanation on how this works:

So when something is true or false, it can either have a value of 1 or 0. True = 1, and false = 0. When you are pressing the up arrow key, you are not doing true - false, but instead 1 - 0. This is because the minus block is not used for words, and only for numbers. For the multiply by five part, this is only used to multiply the movement so it is faster that way. Hope this explanation helped!

TeoKA
Автор

Finally... Scratch cat isnt roleplaying spidercat by pulling an upside down whenever he walks backwards

zombe
Автор

This would help a lot of new scratchers!

mgrvr
Автор

For a simpler code:
When green flag clicked
Forever(
If W/up arrow pressed(
Change y by (any value you want)
)
If A/left arrow pressed(
Change x by (any negative value)
)
If S/down arrow pressed(
Change y by (any negative value)
)
If D/right arrow pressed(
Change x by (any value you want)
)
)

kingomen
Автор

Wow this is WAY much simpler than what I use!

lightuptheray
Автор

that’s less blocks than what I would do!




if you’re wondering, i do this script 4 times for each input:
when flag clicked
forever
if <key (arrow key) pressed?> then
change x/y by 5
(if statement end)
(forever end)

GhostlyMinty
Автор

then theres me:
makes custom block and obv has to make mobile support

seriously
Автор

Finally, no more dreaded if<>then walls

Disatvantage
Автор

And this is very Good and IS VERY GOOD TO ME!!

Just_Fix
Автор

What? Mathewscratchaccount is evolving!

mathewgalaxyshorts
Автор

Yeah very basic




Fun Fact:I am a plant

DUMB_PERSON_NEAR_ME
Автор

my pov using a "if block" in a "forever" loop and sensing blocks with arrow keys or wasd to move the sprite: it's the same picture.

zamanhaidary
Автор

Oh cool, i guess i dont have to 4 forever if statements

RedMan
Автор

i used only the x for my mr bees sim game

ilonaignotaite
Автор

Number 15 Your Mom - YouTube hey steamlist watch this i made XD

oh_noes
Автор

If 🏳️ clicked
Forever [
If <key (arrow up) pressed> then[
Change y by (10)
]
If <key (arrow down) pressed> then[
Change y by (-10)
]
If <key (arrow right) pressed> then[
Change x by (10)
]
If <key (arrow left) pressed> then[
Change x by (-10)
]
]
.

nikkyhika
Автор

Ye, this EVER BETER than scratch stupid
/When [up arrow] cliked
So buggy script....
But this good and not bugs 🙂

Olavr_UA
Автор

isn't better

Forever
If key (insert key) pressed?
change x by 10

santixd