A lot of people have been posting projects like 'Blocks I Want To See'. But, beleive it or not, an average of ~25% of these blocks can easily be done, by using other blocks. This forum topic is a list of blocks that a lot of people want, and how to do them using other blocks.
[restart] block: It is a little known fact, but this CAN be done. All you need to do is [broadcast [scratch-startclicked]], but this only works offline. You can take advantage of this not working to kame an online/offline detector, one of which I have in my stuff.
[previous costume] block: This can easily be done with [switch to costume ((costume #) - 1)].
[go forward (1) layers] block: Very simply done with [go back (-1) layers].
I'll make additions to this list on a whenever-I-feel-like-it basis.
Last edited by rubiks_cube_guy238 (2010-04-06 19:19:14)
Offline
rubiks_cube_guy238 wrote:
[restart] block: It is a little known fact, but this CAN be done. All you need to do is [broadcast [scratch-startclicked]], but this only works offline..
No it works online, too.
http://scratch.mit.edu/projects/gershmer/892952
Offline
gershmer wrote:
rubiks_cube_guy238 wrote:
[restart] block: It is a little known fact, but this CAN be done. All you need to do is [broadcast [scratch-startclicked]], but this only works offline..
No it works online, too.
http://scratch.mit.edu/projects/gershmer/892952
Yes, but that was in Squeak itself, not Scratch. Simply broadcasting scratch-startclicked will not work online.
Offline
nXIII wrote:
I just realized that (inspired by the 'Scratch-StartClicked') you can use [broadcast 'Scratch-MouseClickEvent'] to fire a 'universal click' (everything was clicked at once)...
![]()
Wow... That's cool! I'll add that into the list.
Offline
rubiks_cube_guy238 wrote:
gershmer wrote:
rubiks_cube_guy238 wrote:
No it works online, too.
http://scratch.mit.edu/projects/gershmer/892952Yes, but that was in Squeak itself, not Scratch. Simply broadcasting scratch-startclicked will not work online.
Uh... no. It just worked for me in Java. Take a look.
Offline
You CAN make a previous costume block by editing the source code, not sure about the other two, though. Way I know this: I have 1.
Offline
pika100chu wrote:
You CAN make a previous costume block by editing the source code, not sure about the other two, though. Way I know this: I have 1.
![]()
But why go to all that hassel when you can just do the
[blocks]
<switch to costume[ (( (costume) <-> 1 ))
[/blocks]
Last edited by markyparky56 (2010-04-12 14:40:52)
Offline