Discuss Scratch

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 ?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
FMXmotocross12
Scratcher
8 posts

HOW DO I USE "new block" scripting??

drmcw wrote:

Does this help http://wiki.scratch.mit.edu/wiki/More_Blocks ?
Well maybe not. ( the Eliza project )

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:

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??

liam48D wrote:

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.
Where do did you get “time” and “what”? did you also have to make that?

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??

FMXmotocross12 wrote:

liam48D wrote:

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.
Where do did you get “time” and “what”? did you also have to make that?

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)




Play Pong! against a computer player! Earn Fire and Gold Power-Ups to throw off your opponent and get the highest score possible! Click the above to play!
FMXmotocross12
Scratcher
8 posts

HOW DO I USE "new block" scripting??

Zacshap21 wrote:

FMXmotocross12 wrote:

liam48D wrote:

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.
Where do did you get “time” and “what”? did you also have to make that?

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)
ookkkk!

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.
Joshia_T
Scratcher
500+ posts

HOW DO I USE "new block" scripting??

FMXmotocross12 wrote:

Thank you for all of the help you've given! It was super helpful and useful! :-)
Do you still have probs with that?

FMXmotocross12
Scratcher
8 posts

HOW DO I USE "new block" scripting??

Joshia_Tanumihardja wrote:

FMXmotocross12 wrote:

Thank you for all of the help you've given! It was super helpful and useful! :-)
Do you still have probs with that?

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)

Powered by DjangoBB