Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to use "make a block"
- mabhishek1711
-
Scratcher
6 posts
How to use "make a block"
It is difficult to understand how I am going to use the “make a block” feature. I do not know what it is used for. Please explain what and how I can create new blocks and use them and how they can make my programs better.
- jokebookservice1
-
Scratcher
1000+ posts
How to use "make a block"
If you are familiar to another programming language: They are user created functions that do not return anything (void). When you click the Make a Block button it let's you customise it with text, arguments like Numbers and Strings and Booleans, and running without screen - refresh (Preventing constant update of the display which stops lag. When you click Ok a define block will appear, this is where you put the code of the function. You can rag the arguments from the define block to the define script. You can drag your block from the purple category into a script (You can make a recursive function and drag he block into the define script if you want) (You can also call another function from withing a define script.) Important note, the define block waits until the define script finishes executing before continuing. It is like a Wait Until Done block. Sorry if I was too technical, p, was respond if you don't jnderstand
- harryxwestworth
-
Scratcher
5 posts
How to use "make a block"
well anyway I have tried it but it won't work I wish scratch would already put code to recommend which games to make!!
define
()
- deck26
-
Scratcher
1000+ posts
How to use "make a block"
I suggest you read (and perhaps follow) this topic https://scratch.mit.edu/discuss/topic/191507/
- Bluestar601
-
Scratcher
97 posts
How to use "make a block"
It is difficult to understand how I am going to use the “make a block” feature. I do not know what it is used for. Please explain what and how I can create new blocks and use them and how they can make my programs better.this is the basic stuff:
first, press this. (although you probably knew this)
then type the name of the block and press “ok”.
finally, add something to the “Define”
Define dance
change (color v) effect by [25]
- TsnoodleStudios
-
Scratcher
25 posts
How to use "make a block"
It is difficult to understand how I am going to use the “make a block” feature. I do not know what it is used for. Please explain what and how I can create new blocks and use them and how they can make my programs better.Here's a simplified way to do it->
This is the define block, this will appear when you make the block, this basically programs the block to do what you want.
define Have fun
forever
switch backdrop to [kingdom v]
end
After you fill out the define block, the block will have the directions from the define block, so you can pull it out and use it with your directions.
Last edited by TsnoodleStudios (April 2, 2016 01:50:01)
- jokebookservice1
-
Scratcher
1000+ posts
How to use "make a block"
I would like to mention tt the define script above lasts forevver, s your code fter the block will not work:
…//This code will be fine
Have fun::custom //This will take infinity time
… //So these never get executed
…//This code will be fine
Have fun::custom //This will take infinity time
… //So these never get executed
- lylay
-
New Scratcher
2 posts
How to use "make a block"
how do you make a block that would hide the sprite when it is done making a sound.
- Rocket-Flier
-
Scratcher
100+ posts
How to use "make a block"
how do you make a block that would hide the sprite when it is done making a sound.This is a old topic, please make a new topic to ask your question.
- Discussion Forums
- » Help with Scripts
-
» How to use "make a block"
