Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » HOW DO I USE "new block" scripting??
- FMXmotocross12
- Scratcher
8 posts
HOW DO I USE "new block" scripting??
I need help with the- this….
HOW DO I USE IT???:rolleyes::rolleyes:
define
Last edited by FMXmotocross12 (Jan. 31, 2015 07:20:40)
I like The Fabulous Kingpins, rock the stage with my band called BandOFxRocks12, play airsoft and like Rock n roll.
- drmcw
- Scratcher
1000+ posts
HOW DO I USE "new block" scripting??
Does this help http://wiki.scratch.mit.edu/wiki/More_Blocks ?
- FMXmotocross12
- Scratcher
8 posts
HOW DO I USE "new block" scripting??
http://wiki.scratch.mit.edu/wiki/More_Blocks ?Well maybe not. ( the Eliza project ) Does this help
I like The Fabulous Kingpins, rock the stage with my band called BandOFxRocks12, play airsoft and like Rock n roll.
- liam48D
- Scratcher
1000+ posts
HOW DO I USE "new block" scripting??
Think of it as a simple way to make scripts that you'll use over and over in your program:
Which is more organized and looks better than:
Plus, if ever you made a mistake in your program, you can just change it in the new block rather than everywhere in the program. This makes coding much easier.
define say (what) with costumes for (time) seconds
switch to costume [speaking v]
say (what) for (time) secs
switch to costume [normal v]
when GF clicked
say [Hello!] with costumes for (2) seconds
wait (1) secs
say [I like this new thing.] with costumes for (3) seconds
Which is more organized and looks better than:
when GF clicked
switch to costume [speaking v]
say [Hello!] for (2) secs
switch to costume [normal v]
wait (1) secs
switch to costume [speaking v]
say [I like this new thing.] for (3) secs
switch to costume [normal v]
Plus, if ever you made a mistake in your program, you can just change it in the new block rather than everywhere in the program. This makes coding much easier.
202e-202e-202e-202e-202e UNI-CODE~~~~~
- FMXmotocross12
- Scratcher
8 posts
HOW DO I USE "new block" scripting??
Where do did you get “time” and “what”? did you also have to make that? Think of it as a simple way to make scripts that you'll use over and over in your program:define say (what) with costumes for (time) seconds
switch to costume [speaking v]
say (what) for (time) secs
switch to costume [normal v]
when GF clicked
say [Hello!] with costumes for (2) seconds
wait (1) secs
say [I like this new thing.] with costumes for (3) seconds
Which is more organized and looks better than:when GF clicked
switch to costume [speaking v]
say [Hello!] for (2) secs
switch to costume [normal v]
wait (1) secs
switch to costume [speaking v]
say [I like this new thing.] for (3) secs
switch to costume [normal v]
Plus, if ever you made a mistake in your program, you can just change it in the new block rather than everywhere in the program. This makes coding much easier.
I like The Fabulous Kingpins, rock the stage with my band called BandOFxRocks12, play airsoft and like Rock n roll.
- Zacshap21
- Scratcher
100+ posts
HOW DO I USE "new block" scripting??
Where do did you get “time” and “what”? did you also have to make that? Think of it as a simple way to make scripts that you'll use over and over in your program:define say (what) with costumes for (time) seconds
switch to costume [speaking v]
say (what) for (time) secs
switch to costume [normal v]
when GF clicked
say [Hello!] with costumes for (2) seconds
wait (1) secs
say [I like this new thing.] with costumes for (3) seconds
Which is more organized and looks better than:when GF clicked
switch to costume [speaking v]
say [Hello!] for (2) secs
switch to costume [normal v]
wait (1) secs
switch to costume [speaking v]
say [I like this new thing.] for (3) secs
switch to costume [normal v]
Plus, if ever you made a mistake in your program, you can just change it in the new block rather than everywhere in the program. This makes coding much easier.
Those are variables, and if you use them in your new block, it can get a little confusing for beginners. Those are pretty much the blank spots for inputs in blocks. Have you seen the block ‘move __ steps’? As a custom block, it would look like
define move (steps)
Last edited by Zacshap21 (Jan. 31, 2015 23:40:48)
- FMXmotocross12
- Scratcher
8 posts
HOW DO I USE "new block" scripting??
ookkkk!Where do did you get “time” and “what”? did you also have to make that? Think of it as a simple way to make scripts that you'll use over and over in your program:define say (what) with costumes for (time) seconds
switch to costume [speaking v]
say (what) for (time) secs
switch to costume [normal v]
when GF clicked
say [Hello!] with costumes for (2) seconds
wait (1) secs
say [I like this new thing.] with costumes for (3) seconds
Which is more organized and looks better than:when GF clicked
switch to costume [speaking v]
say [Hello!] for (2) secs
switch to costume [normal v]
wait (1) secs
switch to costume [speaking v]
say [I like this new thing.] for (3) secs
switch to costume [normal v]
Plus, if ever you made a mistake in your program, you can just change it in the new block rather than everywhere in the program. This makes coding much easier.
Those are variables, and if you use them in your new block, it can get a little confusing for beginners. Those are pretty much the blank spots for inputs in blocks. Have you seen the block ‘move __ steps’? As a custom block, it would look likedefine move (steps)
I like The Fabulous Kingpins, rock the stage with my band called BandOFxRocks12, play airsoft and like Rock n roll.
- FMXmotocross12
- Scratcher
8 posts
HOW DO I USE "new block" scripting??
Thank you for all of the help you've given! It was super helpful and useful! :-)
I like The Fabulous Kingpins, rock the stage with my band called BandOFxRocks12, play airsoft and like Rock n roll.
- FMXmotocross12
- Scratcher
8 posts
HOW DO I USE "new block" scripting??
Do you still have probs with that? Thank you for all of the help you've given! It was super helpful and useful! :-)
Nope.
Last edited by FMXmotocross12 (Dec. 30, 2015 05:57:32)
I like The Fabulous Kingpins, rock the stage with my band called BandOFxRocks12, play airsoft and like Rock n roll.
- dabaws424
- Scratcher
29 posts
HOW DO I USE "new block" scripting??
define jump
change y by (10)
when [space v] key pressed
jump::custom
Last edited by dabaws424 (March 21, 2016 22:40:17)
- Discussion Forums
- » Help with Scripts
- » HOW DO I USE "new block" scripting??