Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » script blocks
- hana_banana
-
35 posts
script blocks
i dont get it? how can you make a new script block thingy like this ——————->
that was just an exaple i ment how can you make you own block with one of these ———————>
- jamy_hensley_test
-
100+ posts
script blocks
You can use the more blocks feature of scratch and call that block later.
- Cryptic_Lynx
-
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…
And the Define block.
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:
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.
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!
You'll have the block that you made…
And the Define block.
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:
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.
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
-
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!!!








- Discussion Forums
- » Help with Scripts
-
» script blocks