Discuss Scratch
- Discussion Forums
- » Suggestions
- » (run "block" from "sprites") block
- mikkel500
-
Scratcher
60 posts
(run "block" from "sprites") block
see the title says it all. it would be cool if you can run one of its blocks from another sprites script. in this way can the codes easier to work together on an action. I hope that you think about the idea. 
comment if you have a comment.

comment if you have a comment.
- turkey3
-
Scratcher
1000+ posts
(run "block" from "sprites") block
Hmm… This is a good idea, because other languages do it. I just know some Java, and I know that saying chicken.move(5); makes the chicken class move 5 steps. But how would we turn this into a block? Maybe it'd be a block with a block input in it, and the first thing will be the sprites name and the word “run”. But then there's broadcasts…
- mikkel500
-
Scratcher
60 posts
(run "block" from "sprites") block
that's not what I mean. I believe that the blocks you make yourself appear only when the sprite is made, but if you use this block will be able to use a code from a block from another sprite without using “when you receive the”? “ ” Blocken, but run the code directly from another code. easily enough.
- mikkel500
-
Scratcher
60 posts
(run "block" from "sprites") block
here is some better names for this block
(script “?” from sprite “?”)
and this code is triggered if a code run
<if this code run “script” from “sprite”>
This code makes it possible to create scripts while playing,
(add “script” if <?>)
these options will make it easier to find your way around its codes, and use the same codes for multiple sprites
I hope they come in next update
(script “?” from sprite “?”)
and this code is triggered if a code run
<if this code run “script” from “sprite”>
This code makes it possible to create scripts while playing,
(add “script” if <?>)
these options will make it easier to find your way around its codes, and use the same codes for multiple sprites
I hope they come in next update
- Discussion Forums
- » Suggestions
-
» (run "block" from "sprites") block

