Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » A custom block with this procedure definition: "jump (number1)". What if U use "(number1)" on a script other than the procedure definition?
- Scratch12300
- Scratcher
500+ posts
A custom block with this procedure definition: "jump (number1)". What if U use "(number1)" on a script other than the procedure definition?
The title is very long, and asks you the question itself.
EDIT: I think it should be like the answer block, if it has this script:
And then it says “5”, then “10”. Like this script:
And then it says the answer to the “pie” question, then the answer to the “name” question.
EDIT: I think it should be like the answer block, if it has this script:
jump (5)
say (number1) for (2) secs
jump (10)
say (number1) for (2) secs
ask [Do you like cake?] and wait
say (answer) for (2) secs
ask [What's your name?] and wait
say (answer) for (2) secs
Last edited by Scratch12300 (May 27, 2013 17:01:58)
- scimonster
- Scratcher
1000+ posts
A custom block with this procedure definition: "jump (number1)". What if U use "(number1)" on a script other than the procedure definition?
I think it throws a script error.
Retired Community Moderator
BTW, i run Google Chrome 41.0.2272.101 on a Linux system - Ubuntu 14.04. NEW: iPad 4th gen. w/retina.
418 I'm a teapot (original - to be read by bored computer geeks)
THE GAME (you just lost)
; THE SEMICOLON LIVES ON IN OUR SIGS
- Scratch12300
- Scratcher
500+ posts
A custom block with this procedure definition: "jump (number1)". What if U use "(number1)" on a script other than the procedure definition?
I think it should be like the answer block, if it has this script: I think it throws a script error.
jump (5)
say (number1) for (2) secs
jump (10)
say (number1) for (2) secs
ask [Do you like cake?] and wait
say (answer) for (2) secs
ask [What's your name?] and wait
say (answer) for (2) secs
Last edited by Scratch12300 (May 27, 2013 17:02:35)
- dude86
- Scratcher
7 posts
A custom block with this procedure definition: "jump (number1)". What if U use "(number1)" on a script other than the procedure definition?
define jump (height)then you'll have a block called jump (1). change the 1 to 10.
change y by (height)
wait (0.3) secs
change y by ((-1)*(height))
end
- Discussion Forums
- » Questions about Scratch
- » A custom block with this procedure definition: "jump (number1)". What if U use "(number1)" on a script other than the procedure definition?