Discuss Scratch

124816
Scratcher
26 posts

New [scratchblocks] tag

GodzillaKing100 wrote:

I want a block that can sense if a sprite is touching color or sprite or backdrop.




when green flag clicked
forever
if <touching [#00FF00]>
...
end
end

Last edited by 124816 (Oct. 1, 2014 22:56:13)

124816
Scratcher
26 posts

New [scratchblocks] tag

Wow! This is getting really popular!
...
...
...
...
...
...
...
...
124816
Scratcher
26 posts

New [scratchblocks] tag

Here's something from the Scratch Wiki.
run ((create clone :: control) ▶ :: grey) :: control

<<> :: grey>

say (http:// :: sensing)

((6) × (7) :: operators)

(join ◀ ▶ :: operators)

script variables ((foo) :: grey) ((bar) :: grey) ▶ :: grey

(all but first of (list) :: list)

warp :: grey cstart
move (10) steps
end

report :: control cap

<<>> // without even the :: grey

Here it is in scratchblock form:
run ((create clone :: control) ▶ :: grey) :: control

<<> :: grey>

say (http://[snap.berkeley.edu] :: sensing)

((6) × (7) :: operators)

(join [hello ] [world] ◀ ▶ :: operators)

script variables ((foo) :: grey) ((bar) :: grey) ▶ :: grey

(all but first of (list) :: list)

warp :: grey cstart
move (10) steps
end

report [Done!] :: control cap

<<>> // without even the :: grey
derpmeup
Scratcher
1000+ posts

New [scratchblocks] tag

To everyone: Please don't test out the scratchblocks tag here, instead, do it here. Thanks!
tjrgus26
New Scratcher
1 post

New [scratchblocks] tag

ㅋㅋㅋ
Toffee2468
Scratcher
100+ posts

New [scratchblocks] tag

I need help with a game- visit my profile and look at the project- Witch- when the witch is on the platform it goes into the black on the first level but mostly on the second- i need help to use the right blocks to sort this out!
repeat (10000000000)
say [plz help me]
ask [will you help] and wait
if <(answer) = [NO ]> then
say [SCREAM]

end

end
EMPedemonte20
Scratcher
100+ posts

New [scratchblocks] tag

Can you make Boolean reporters have the shape of a boolean reporter? You could use an image underlay (did I use that correctly?) and place the text on top.
ScratchExpert
Scratcher
1 post

New [scratchblocks] tag

Test post
when backdrop switches to [park v]
switch costume to [bouncy ball v]
change [excitement v] by (1)

Last edited by ScratchExpert (Oct. 15, 2014 22:59:40)

nimrocco
Scratcher
100+ posts

New [scratchblocks] tag

yay::sensing boolean//:) 

when [i receive that blocks are back v]
try it::motion
get amazed::looks
stop [nothing v]::control stack
forever
imagine::motion
program::pen
share::sound
Scratch On!::motion
PentagonStudios
Scratcher
100+ posts

New [scratchblocks] tag

Awesome
GodzillaKing100
Scratcher
100+ posts

New [scratchblocks] tag

goldfish678 wrote:

Interesting.
when green flag clicked //category=sensing
GodzillaKing100
Scratcher
100+ posts

New [scratchblocks] tag

GodzillaKing100 wrote:

goldfish678 wrote:

Interesting.
<if touching [ v] then: //category=sensing
GodzillaKing100
Scratcher
100+ posts

New [scratchblocks] tag

nimrocco wrote:

yay::sensing boolean//:) 

when [i receive that blocks are back v]
try it::motion
get amazed::looks
stop [nothing v]::control stack
forever
imagine::motion
program::pen
share::sound
Scratch On!::motion

124816 wrote:

Here's something from the Scratch Wiki.
run ((create clone :: control) ▶ :: grey) :: control

<<> :: grey>

say (http:// :: sensing)

((6) × (7) :: operators)

(join ◀ ▶ :: operators)

script variables ((foo) :: grey) ((bar) :: grey) ▶ :: grey

(all but first of (list) :: list)

warp :: grey cstart
move (10) steps
end

report :: control cap

<<>> // without even the :: grey

Here it is in scratchblock form:
run ((create clone :: control) ▶ :: grey) :: control

<<> :: grey>

say (http://[snap.berkeley.edu] :: sensing)

((6) × (7) :: operators)

(join [hello ] [world] ◀ ▶ :: operators)

script variables ((foo) :: grey) ((bar) :: grey) ▶ :: grey

(all but first of (list) :: list)

warp :: grey cstart
move (10) steps
end

report [Done!] :: control cap

<<>> // without even the :: grey[/quote]
GodzillaKing100
Scratcher
100+ posts

New [scratchblocks] tag

GodzillaKing100 wrote:

GodzillaKing100 wrote:

goldfish678 wrote:

Interesting.
<When the green flag is clicked () //category=Events
chanmanrules
Scratcher
4 posts

New [scratchblocks] tag

Scratch is awesome
jrezneckbhds
Scratcher
500+ posts

New [scratchblocks] tag

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…
Looks much better! Your work is appreciated!
+1
jrezneckbhds
Scratcher
500+ posts

New [scratchblocks] tag

davidkt wrote:

Yay!
when gf clicked
say [I'm glad to have the old scratchblocks tag back! :D]
repeat (10)
change y by (10)
wait (0.125) secs
change y by (-10)
wait (0.125) secs
end
Me too!
cambournecoolboy
Scratcher
16 posts

New [scratchblocks] tag

say [Yay even new sratchers can do dis!]
cambournecoolboy
Scratcher
16 posts

New [scratchblocks] tag

say [:D][scratchblocks]

[/scratchblocks]
flopflip25
Scratcher
10 posts

New [scratchblocks] tag

when you see this
go to [my profile]
say [awesome!] for (∞) secs
forever

point towards [ your computer screen]
like everything
end

Powered by DjangoBB