Discuss Scratch
- Discussion Forums
- » Open Source Projects
- » What the Bryng Topic was for
- apanageotes
-
88 posts
What the Bryng Topic was for
when [space v] key pressed
StartFunction = Function [function v]
EndFunction = Function [function v]
These commands were used in the first version of Bryng like how it was used today, but in the latest version, its start and end command menus are set to a blank subject. I'll release the full version soon.

The StartFunction command is where the function starts before it ends.
Example:
StartFunction = Function [function v]is used to cooperate
broadcast [function v] and wait
This block is used for the StartFunction command from the following script:
when I receive [function v]
...
The EndFunction command is where it stops all of the scripts after the StartFunction was used.
Example:
EndFunction = Function [function v]is used to cooperate
stop [all v]
Last edited by apanageotes (Nov. 8, 2022 22:07:57)
- apanageotes
-
88 posts
What the Bryng Topic was for
when I receive [function v]
CommandOptions = Do Command Forever
This command was used in the second version of Bryng like how it was used today.
The Do Command Forever command is where the command repeats the other command forever.
Example:
CommandOptions = Do Command Foreveris used to cooperate
broadcast [forever do v]
This block is used for the Do Command Forever command from the following script:
when I receive [forever do v]
forever
...
end
- apanageotes
-
88 posts
What the Bryng Topic was for
when I receive [function v]
TextToSpeech = Voice (1 v) Say [ Bryng, Code anywhere you want! ]
This is the example of the Bryng script in the fifth version in the style of the first version.
Last edited by apanageotes (Nov. 9, 2022 12:13:19)
- apanageotes
-
88 posts
What the Bryng Topic was for
when I receive [function v]
PlayNote = Note (60) on Piano (0.5) beats :: custom arg
This command is a note command and was used in the third version of Bryng, but in the sixth version, its note command got deleted.
The PlayNote command is where it will play a note on the Piano.
Examaple:
PlayNote = Note (60) on Piano (0.5) beats :: custom argis used to cooperate the define block.
This block was used for the PlayNote command from the following script:
define PlayNote = Note (note) on Piano (beats) beats
play note (note :: custom arg) for (beats :: custom arg) beats
Last edited by apanageotes (Nov. 9, 2022 12:26:27)
- apanageotes
-
88 posts
What the Bryng Topic was for
when [space v] key pressed
repeat until <<unit :: custom arg> = [99]>
if <<unit :: custom arg> = [98]> then
set [cent v] to [1]
else
repeat (10)
in form <cloud = [cent v]> :: list
end
end
in form set (join (join <unit :: custom arg> (end)) <cloud = [cent v]>) :: list
end
print [This is Bryng Beta!] :: list
repeat (20)
if <<unit :: custom arg> = [-1]> then
in form <not <unit :: custom arg>> :: list
else
in form <ark (pick random (1) to (100)) :: custom arg> :: list
end
end
switch backdrop to [Bryng Beta 2 v]
This is the example script for Bryng Beta Version 2.
when [space v] key pressed
repeat until <<unit :: custom arg> = [99]>
if <<unit :: custom arg> = [98]> then
set [cent v] to [1]
else
repeat (10)
in form <open [cent v]> :: list
end
end
in set (join (join <unit :: custom arg> (end)) <open [cent v]>) :: list
end
print [This is Bryng Beta!] :: list
repeat (20)
if <<unit :: custom arg> = [0]> then
in form <not <unit :: custom arg>> :: list
else
in form <ark (pick random (1) to (100)) :: custom arg> :: list
end
end
switch backdrop to [Bryng Beta 3 v]
This is the example script for Bryng Beta Version 3.
- Discussion Forums
- » Open Source Projects
-
» What the Bryng Topic was for