Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » [scratchblocks] OFFICIAL testing topic
- cs277227
-
38 posts
[scratchblocks] OFFICIAL testing topic
Time for the workarounds!
Give me a workaround for this block:
![](http://wiki.scratch.mit.edu/w/images/%28%29_Received%3F.png)
Give me a workaround for this block:
![](http://wiki.scratch.mit.edu/w/images/%28%29_Received%3F.png)
say [Hello!] for (2) secsThe normal user.
broadcast [go v]
- Ninkancho
-
500+ posts
[scratchblocks] OFFICIAL testing topic
when I receive [something v]
set [variable v] to [1]
...::hat
forever
wait until <(variable) = [1]>
set [variable v] to [0]
...
end
Not perfect, but yeah. For <[something v] received ever?>, take out the {set [variable v] to [0]}. For <[something v] received since @greenFlag clicked?> set the variable to 0 under a flag hat.
Ninkancho STUDIO • ☁️ Cloud Clicker DEMO
Let's Play Together • Another Rather Unremarkable Platformer • Sinewarper
public class Scrape{public static void main(String[] args){Scrape myScrape=new Scrape();myScrape.eternally{myScrape.picture();myScrape.write();myScrape.tell();}}}
Windows NT 10.0, Chrome 51.0.2704.79, Flash 23.0 (release 0)), Flash 23.0 (release 0)
kajquats;
- cs277227
-
38 posts
[scratchblocks] OFFICIAL testing topic
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
say [Hello!] for (2) secsThe normal user.
broadcast [go v]
- pokegirl06
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
lol spam
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
forever
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
- cs277227
-
38 posts
[scratchblocks] OFFICIAL testing topic
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
say [Hello!] for (2) secsThe normal user.
broadcast [go v]
- FrenchFries8854
-
37 posts
[scratchblocks] OFFICIAL testing topic
repeat for() secs::cstart control
end
Last edited by FrenchFries8854 (March 12, 2016 01:28:35)
when green flag clicked
if <(username) = [FrenchFries8854]> then
broadcast [ FrenchFries8854 ]
- FrenchFries8854
-
37 posts
[scratchblocks] OFFICIAL testing topic
(()^()::operators)
(sound name::sound)
(z position::motion)
(password::sensing)
<key[backspace v]::sensing>
<key[shift v]::sensing>
<key[tab v]::sensing>
<key[caps lock v]::sensing>
<key[enter v]::sensing>
<Variable[ v] touching [ v]::variables>
<List[ v] touching [ v]::list>
<When I Revive [ v]::events>
Record Sound::sound
Stop Recording Sound::sound
Take Photo::sensing
Start Taking Video::sensing
Stop Taking Video::sensing
Create backdrop from [ v]::looks
Create costume from [ v]::looks
go to x:()y:()z:()::motion
change z by()::motion
set z to ()::motion
Write [] at x:()y:() Size()::looks
send [List v] to x:()y:()::list
send [variable v] to x:()y:()::variables
Custom Cloops::cstart custom
end
when green flag clicked
if <(username) = [FrenchFries8854]> then
broadcast [ FrenchFries8854 ]
- prigtrip
-
12 posts
[scratchblocks] OFFICIAL testing topic
when gf clicked
ask [Does scratchblocks work?]
if
(answer) = [yes]
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
Correctionwhen gf clicked
ask [Does scratchblocks work?] and wait
if
(answer) = [yes]
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
Correction
when green flag clicked
ask [Does scratchblocks work?] and wait
if <(answer) = [yes ]> then
say [Hooray!]
end
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
end
- Ninkancho
-
500+ posts
[scratchblocks] OFFICIAL testing topic
when gf clicked
ask [Does scratchblocks work?]
if
(answer) = [yes]
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
Correctionwhen gf clicked
ask [Does scratchblocks work?] and wait
if
(answer) = [yes]
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
Correctionwhen green flag clicked
ask [Does scratchblocks work?] and wait
if <(answer) = [yes ]> then
say [Hooray!]
end
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
end
Correction
when green flag clicked
ask [Does scratchblocks work?] and wait
if <(answer) = [yes]> then
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
end
Ninkancho STUDIO • ☁️ Cloud Clicker DEMO
Let's Play Together • Another Rather Unremarkable Platformer • Sinewarper
public class Scrape{public static void main(String[] args){Scrape myScrape=new Scrape();myScrape.eternally{myScrape.picture();myScrape.write();myScrape.tell();}}}
Windows NT 10.0, Chrome 51.0.2704.79, Flash 23.0 (release 0)), Flash 23.0 (release 0)
kajquats;
- onlyNones
-
61 posts
[scratchblocks] OFFICIAL testing topic
(testing)
testing
Last edited by onlyNones (March 12, 2016 11:40:50)
########################## E ^ ^ ^
| | v v |v| |||v | N | | ^ | ^
v | | | | v ||v v C | ^ | ^ | |
| | | | || v O ^ | | | | ^ |
| | v | || D | | | ^| | | |
| v v || E | | ^ || | | |
v vv D ##########################
- onlyNones
-
61 posts
[scratchblocks] OFFICIAL testing topic
<key (pick random letter (a) to (z)) pressed?>
########################## E ^ ^ ^
| | v v |v| |||v | N | | ^ | ^
v | | | | v ||v v C | ^ | ^ | |
| | | | || v O ^ | | | | ^ |
| | v | || D | | | ^| | | |
| v v || E | | ^ || | | |
v vv D ##########################
- Owengren
-
100+ posts
[scratchblocks] OFFICIAL testing topic
Time for the workarounds!
Give me a workaround for this block:
when gf clicked
broadcast [event v]
when I receive [event v]
set [event received? v] to [true]
. . .
set [event received? v] to [false]
define [event] received
if <((join (event) (join [ ] [received?]))) = [true]> then
say True
else
say False
end
define say True
say [T] for (0.1) secs
say [Tr] for (0.1) secs
say [Tru] for (0.1) secs
say [True] for ((length of [true]) / (3)) secs
define say False
say [F] for (0.1) secs
say [Fa] for (0.1) secs
say [Fal] for (0.1) secs
say [Fals] for (0.1) secs
say [False] for ((length of [false]) / (3)) secs
Go check out Cosmic Chasers - my new 2.5D game!
https://scratch.mit.edu/projects/414358692/
Cosmic Chasers might move to a new account. Here's why:
https://scratch.mit.edu/projects/415189579/
- Denciethepenguin
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
Too many If then blocks.if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
if <> then
((([snip v]) ::grey Boolean) :: list Boolean) :: motion ring
![](http://cdn.scratch.mit.edu/scratchr2/static/__98943188f8981cefe0cdd172a4685616__/djangobb_forum/img/smilies/tongue.png)
Don't you hate that moment when you have no ideas for a signature?
- TheBoys4
-
57 posts
[scratchblocks] OFFICIAL testing topic
Can Some Body Give Me a work around for this?
<if [ v] is touching [ v]::sensing>
FrenchFries8854
Ollieo3
catman97
CodingTornado
have you ever wanted to create an account and play with friends? CLICK ME!
- TheBoys4
-
57 posts
[scratchblocks] OFFICIAL testing topic
iScratch!
FrenchFries8854
Ollieo3
catman97
CodingTornado
have you ever wanted to create an account and play with friends? CLICK ME!
- Nice_Flame
-
100+ posts
[scratchblocks] OFFICIAL testing topic
REAL CORRECTION:when gf clicked
ask [Does scratchblocks work?]
if
(answer) = [Yes]
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
Correctionwhen gf clicked
ask [Does scratchblocks work?] and wait
if
(answer) = [yes]
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
Correctionwhen green flag clicked
ask [Does scratchblocks work?] and wait
if <(answer) = [yes ]> then
say [Hooray!]
end
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
end
Correctionwhen green flag clicked
ask [Does scratchblocks work?] and wait
if <(answer) = [yes]> then
say [Hooray!]
else
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
end
when green flag clicked
ask [Does scratchblocks work?] and wait
if <(answer) = [yes ]> then
say [Hooray!]
else::celse
say [What is there to say? Scratchblocks are there in 2.0!!!! Woohoo!]
::cend
Nice_Flame:
Programmer
Artist
Girl
Creative
_____________________________________________
I learned that courage was not the absence of fear, but the triumph over it. The brave man is not he who does not feel afraid, but he who conquers that fear. ~Nelson Mandela
Education is the most powerful weapon which you can use to change the world. ~Nelson Mandela