Discuss Scratch

hana_banana
Scratcher
35 posts

script blocks

i dont get it? how can you make a new script block thingy like this ——————->
clear?
that was just an exaple i ment how can you make you own block with one of these ———————>
define?
jamy_hensley_test
Scratcher
100+ posts

script blocks

You can use the more blocks feature of scratch and call that block later.
Cryptic_Lynx
Scratcher
36 posts

script blocks

There is a feature in Scratch which allows you to make new blocks… To a limit.
You'll have the block that you made…

CustomBlock

And the Define block.

defineCustomBlock

Now, say you want a block that makes a sprite move 10 steps forward and 10 steps back, and make a sound, all in an infinite loop. You just snap your code onto the Define block, like so:

defineMoveAroundforeverplaysoundMeowmove10stepswait0.3secsmove-10steps

Now, whenever you use “Move around”, the sprite that it's in will play the sound Meow, move forward, wait, and move back again. Then it'll loop.

whenclickedMovearound

I'm having trouble with the Scratchblocks feature right now, so all of the bright red bricks are actually supposed to be dark purple, but I think you get the idea.

It's not really like making a new brick, but it's pretty close.
I hope that I helped!

Last edited by Cryptic_Lynx (Aug. 9, 2015 18:39:39)

hana_banana
Scratcher
35 posts

script blocks

thanks! you really did help me. thanks, but i still dont get it. where on the screen would you put that script that it defines? but thanks anyway you were a big help!!!

Powered by DjangoBB