Discuss Scratch

Redsox5803
Scratcher
100+ posts

New [scratchblocks] tag

 when gf clicked forever Say [Derp!] for (5) secs 

Last edited by Redsox5803 (Oct. 9, 2013 21:10:05)


heyo heyo get down from the table
it's dangerous woaah ~redsox
blob8108
Scratcher
1000+ posts

New [scratchblocks] tag

@mobluse What's wrong with the checkboxes? The generator's just supposed to make code that you can then export to the test page.

tosh · slowly becoming a grown-up adult and very confused about it
mobluse
Scratcher
100+ posts

New [scratchblocks] tag

blob8108 wrote:

@mobluse What's wrong with the checkboxes? The generator's just supposed to make code that you can then export to the test page.
Sorry, I wasn't aware of the page that you get to after Get Code when I wrote this. I think there should be some command to invert the selection.

I can see another problem and that is that the whole code is in the URL and this could mean that some code is lost since these URL:s cannot be too long. There should then be some warning.

I also wonder in what order the code is presented. I think it should be in the columns you have in Scratch 2 but below each other, e.g.
1 4 7
2 5 8
3 9
should become
1
2
3
4
5
9
7
8

Last edited by mobluse (Oct. 10, 2013 10:43:18)


blob8108
Scratcher
1000+ posts

New [scratchblocks] tag

mobluse wrote:

I think there should be some command to invert the selection.
Yeah, a “Select All” might be nice. Maybe some day. Open an issue on GitHub if you want this.

this could mean that some code is lost since these URL:s cannot be too long
Have you experienced this problem? File a bug report if you have.

Anyway, I think it's okay because the hash part is only stored in the browser.

I think it should be in the columns you have in Scratch 2 but below each other
That's a little too difficult, because scripts in a “row” columns aren't guaranteed to have the same y position.

The scripts displayed in the generator are simply sorted by y position. The “Get Code” button exports the scripts in the order you checked them.

tosh · slowly becoming a grown-up adult and very confused about it
GadgetAndyMan
Scratcher
100+ posts

New [scratchblocks] tag

Very useful and good to know

blob8108 wrote:

Good afternoon!

On the old forums, you could write out scripts between [scratchblocks][/scratchblocks] tags.

We've now re-implemented the scratchblocks tag using a brand new plugin that I've been developing. It has the same syntax as the original block plugin, with some minor improvements and bugfixes.
[scratchblocks]
define dance (speed)
set [dist v] to ((speed) * (distance to [mouse-pointer v]))
repeat until <(timer) > [10]>
move (dist) steps
play note (42 v) for (0.5) beats
say [Wow! Scratch 2.0 scripts in the forums!]
end
[/scratchblocks]
define dance (speed)
set [dist v] to ((speed) * (distance to [mouse-pointer v]))
repeat until <(timer) > [10]>
move (dist) steps
play note (42 v) for (0.5) beats
say [Wow! Scratch 2.0 scripts in the forums!]
end

Help on writing the code can be found on the wiki.

You can test out the plugin on the test page. Please don't spam the forums with blocks!

If you find any bugs, please report them below. Thanks!

(Thanks to nXIII for writing the glue code that hooks the plugin into the forums!)

EDIT: made the example match the code…

Latest project updated: X-Y Coordinates Challenge - 14 Jan 2014: Various improvements.

My Likes Studios [ Animation | Art | Education | Games | Simulation | Stories ]
Please take a look and follow any studios that interest you with the projects I am adding.
19f8361
Scratcher
500+ posts

New [scratchblocks] tag

Redsox5803 wrote:

 when gf clicked forever Say [Derp!] for (5) secs 
correction:
when gf clicked
forever
say [Derp!] for (5) secs
end
salazarscratch
Scratcher
51 posts

New [scratchblocks] tag

define glitch ^
repeat until < thing>
glitch ^
end
say for (7) secs

Salazarscratch. Don't i look good?? ??
salazarscratch
Scratcher
51 posts

New [scratchblocks] tag

define glitch ^
repeat until < thing>
glitch ^
end
say for (7) secs

Salazarscratch. Don't i look good?? ??
ScratchJahd2011
Scratcher
500+ posts

New [scratchblocks] tag

when i receive [MINECRAFT_PARTY! v]
say [Dance party!]
repeat (10)
crouch
end

define crouch
if <[shift v] key pressed>
repeat until <not <[shift v] key pressed>
next costume
move (3) steps
next costume
move (-3) steps
end
else
say [What key were you pressing? Press shift.]
I. Just had to do this.

Last edited by ScratchJahd2011 (Nov. 2, 2013 05:53:21)


…..
OrcaCat
Scratcher
1000+ posts

New [scratchblocks] tag

Testing…
say ((stop all sounds)+(1))

Last edited by OrcaCat (Nov. 9, 2013 22:53:17)



Yoshi77
Scratcher
40 posts

New [scratchblocks] tag

when I start as a clone
set [my clone v] to (body parts)
go back (my clone) layers


when I start as a clone
switch costume to [body v]
forever
glide (0.5) secs to x:(myself) y:(myself)
end


when I receive [play game v]
forever
if <touching [food v]?> then
create clone of [snake v]
wait (3) secs
else

end
end

Hey, I'm Yoshi77 aka Aqua!
I don't frequently use the forums, but I updated the Signature just in case.
Check out my projects if you like.
davidkt
Scratcher
1000+ posts

New [scratchblocks] tag

stop all pinks // category=sound

Remember when I looked like this? I still do.


Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
derniersamourai
Scratcher
100+ posts

New [scratchblocks] tag

davidkt wrote:

stop all pinks // category=sound
I've just learned now that when quoting you see the code of the scratchblocks.
An easy way to learn by example.

PanicPandaAlarm
Scratcher
45 posts

New [scratchblocks] tag


test
underminer01
Scratcher
8 posts

New [scratchblocks] tag

when I receive [Test v]
repeat (AS MANY TIMES AS POSSIBLE!!!!!!)
say [Does this work?]
test with (All)
if <tests working> then
go on in life and find true purpose
end

Last edited by underminer01 (Nov. 16, 2013 00:44:10)

underminer01
Scratcher
8 posts

New [scratchblocks] tag

when I start as a clone
forever
eat (Money)/(Donut_Cost) Donuts
end

Last edited by underminer01 (Nov. 16, 2013 00:48:00)

underminer01
Scratcher
8 posts

New [scratchblocks] tag

Serious thing that should exist.
point towards (Closest Sprite)

Last edited by underminer01 (Nov. 16, 2013 00:49:43)

19f8361
Scratcher
500+ posts

New [scratchblocks] tag

list // category=pen

Last edited by 19f8361 (Nov. 16, 2013 01:00:40)

OrcaCat
Scratcher
1000+ posts

New [scratchblocks] tag

change profile picture to [orcacat.png] // category=looks

Last edited by OrcaCat (Nov. 16, 2013 01:02:31)



Powered by DjangoBB