Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » [scratchblocks] OFFICIAL testing topic
- cs156175
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
here's how to do cloud variables!
(☁ variable here)
- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
say [define awesome]
uh.. your on it right now!::sound
- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
(☁variable☁)
wow! that ☁ variable is so cool!!!
- ThunderOS
-
40 posts
[scratchblocks] OFFICIAL testing topic
import [physics constant v] [c] :: sensing
using [scratch engine v] :: sensing // prepares scratch
using [physics engine v] :: sensing // prepares physics
using [thunderos's logic v] :: sensing // prepares my logic
create [temporary v] variable [e] :: variables
create [temporary v] variable [m] :: variables
then :: control cstart
awaken [Einstein v] :: motion
awaken [special theory of relativity v] :: motion
set temp var [e v] to (((m) * (c)) ^ 2) :: variables
stop :: control cend
Last edited by ThunderOS (Jan. 23, 2016 15:38:35)
- DeltaLimp
-
65 posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
forever
if <(Scratchblocks) = [1]> then
say [Yay! It works!] for (2) secs
stop [all v]
else
say [Aw, It doesn't work!] for (2) secs
stop [all v]
end
end
- gabriel2708
-
100+ posts
[scratchblocks] OFFICIAL testing topic
Last edited by gabriel2708 (March 16, 2022 04:09:48)
- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
whoaWhen <> Is True :: hat
Glide X: (50) Y: (50) in (1) secs
Change Stretch By (15)
Point Away From Edge
When GF Clicked
obsolete!
If <<Mouse Down?> And <Touching [Mouse Pointer v]?>
Stop All (:: obsolete) :: control
end
Clone Startup :: events hat
If <Mouse Down?>
Turbo Mode For (5) secs :: sensing
And: <> <> <> <> <> :: cstart control
Set While To [Option1 v] :: control
While [Option1 v] : cstart control
end
end
end
{Turbo Mode For (secs #) secs :: sensing}:: hat control
Set Turbo Mode For <true :: operators> :: sensing
Wait (secs) secs
Set Turbo Mode For <false :: operators> :: sensing
{ And: (cond1) (cond2 ?) (cond3 ?) (cond4 ?) (cond5 ?) (scripts A):: control} :: control hat
If <<cond1:: variables> and <<cond2 :: variables> and <<cond3 :: variables> and<<cond4 :: variables> and <cond5 :: variables>>
Run (scripts) :: control
end
{Set While To (pulldown1):: control} :: hat control
Set [While v] to (pulldown1)
{While (pulldown1) (scripts A) :: control} :: hat control
If <(While) = (pulldown1)>
Run (scripts) :: control
End
When GF Clicked
Set While To [option1 v] :: control
Forever
While [option1 v] :: control cstart
Say [Hello!] For [2] secs
Set While To [option2 v] :: control
end
Say [The End!]
While [option2 v] :: control cstart
Say [New While Block from Snap!] For [2] secs
Set While To [option3 v] :: control
end
While [option3 v] :: control cstart
Repeat (30)
Turn CW (15) Degrees
end
Set While To [option4 v] :: control
end
While [option4 v] :: control cstart
Create Polycon id (1 v) Size (5) :: pen
Say [I made a Triangle!] For [2] secs
Set While To [option5 v~ :: control
end
While [option5 v] :: control cstart
Say [Last option.] For [2] Secs
Say [áéíóúàèìòùãõâêîôû] For [4] Secs
Set While To [ v] :: control
end
Pause All | | :: control
Last edited by Nice_Flame (Jan. 24, 2016 02:51:10)
- MClovers
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
#snap
{+ Say + nothing +::looks}::control hat
say []
Say nothing::looks
- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
{+ WHOA +COOL! +::operators}::sensing hat
- MClovers
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
Don't forget the block!{+ WHOA +COOL! +::operators}::sensing hat
WHOA COOL!::operators
- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
????Don't forget the block!{+ WHOA +COOL! +::operators}::sensing hatWHOA COOL!::operators
WHAT?:: sound
- coolgamesben10
-
100+ posts
[scratchblocks] OFFICIAL testing topic
<what???:: pen> ::variables
when gf clicked:: sensing
<when green flag clicked::events hat> <wow ::motion>:: looks
well, i can do more awesome tha this ::control hat
that is:: operators
my post ends here thanks for reading! :: motion
- coolgamesben10
-
100+ posts
[scratchblocks] OFFICIAL testing topic
i can too do so-

<wait a minute[ v] :: variables> :: motion capXD


- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
scratch [is v] awesome!:: sensing
- coolgamesben10
-
100+ posts
[scratchblocks] OFFICIAL testing topic
yup
scratch [is v] awesome!:: sensing
scratch [is v] awesome!:: looks
- MickTut1
-
6 posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
say [MickTut1 Coming In!]