Discuss Scratch

ipad2person52
Scratcher
7 posts

Guide for scripting

(ipad2person52)

Welcome to the Beginner's Guide to Scratch Scripting!

EVENTS

when green flag clicked

This is starting a script when you click the green flag.

forever

end

This makes something repeat forever.

move (10) steps

This makes the sprite advance 10 steps. You can change the amount of steps.

wait (1) secs

This makes it wait 1 second. You can change the amount of seconds to wait. So…

when green flag clicked
forever

move (10) steps
wait (1) secs
end

This means:
When green flag clicked, repeat forever: move 10 steps, wait 1 second.

point in direction (90 v)

This block makes it change direction. 90 is for right, -90 is for left, 0 is for up, 180 is for down.

repeat (10)

end

This means ‘repeat 10 times’. You can change the number of times.

say [Hello!] for (2) secs

This means ‘say hello for two seconds’. You can change what the cat says and the number of seconds. So…

when green flag clicked
say [Hello] for (2) secs
forever

wait (1) secs
repeat (20)

move (5) steps
end
point in direction (-90 v)
repeat (20)

move (5) steps
end
point in direction (90 v)
say [Hello!] for (2) secs
end

This means: when green flag clicked, say “Hello!” for 2 seconds, repeat forever: wait 1 second, repeat 20 times move 5 steps, point in direction
-90 (left), repeat 20 times move 5 steps, point in direction 90 (right), say “Hello!” for 2 seconds.

That's it for this lesson! See you next time on the next post!

@ipad2person52

(ipad2person52)
ipad2person52
Scratcher
7 posts

Guide for scripting

(ipad2person52)

(Please visit my games: search the tag (ipad2person52))

Powered by DjangoBB