Discuss Scratch
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
// if scratch made a small robot called ScratchBot! (With controls!)This is a ton of code, but it's all for this idea. (Hope it renders right as it's very long)
move [forward v] (10) steps :: motion
move leg #(1 v) [forward v] :: motion
turn right (15) degrees
turn leg #(1 v) @turnRight degrees :: motion
turn left (15) degrees
turn leg #(1 v) @turnLeft degrees :: motion
direction
hop [forward v] with (10 v) force :: motion
spin (1) times :: motion
set spin speed to (1) :: motion
change spin speed by (1) :: motion
(spin speed :: motion)
look [up v] :: motion
stop looking :: motion
[speak v] [hello!] :: looks
set voice to (Alto v) :: looks
(voice :: looks)
(language :: looks)
set language to (English v) :: looks
when I hear [hello!] :: looks hat
do action (wave v) :: looks
turn [on v] camera :: looks
set face expression to [happy v] :: looks
play sound (beep v) until done
start sound (beep v)
stop all sounds
change [pitch v] effect by (10) :: sound
set [pitch v] effect to (0) :: sound
clear sound effects
change volume by (10)
set volume to (100)%
play drum (\(1\) Snare Drum v) for (0.25) beats :: sound
rest for (1) beats :: sound
play note (60) for (0.25) beats :: sound
set instrument to (\(1\) Piano v) :: sound
set tempo to (60) :: sound
change tempo by (5) :: sound
volume
tempo :: sound
when [A v] button pressed :: events
when I'm touched :: events hat
when I see color (red v) :: events hat
when I'm lifted :: events hat
when shaken:: events hat
wait (1) seconds
repeat (10)
end
forever
end
if <> then
end
if <> then
else
end
wait until <>
repeat until <>
end
stop [all v]
<seeing color (red v)? :: sensing>
ask [what's your name?] and wait
answer
<button ( v) pressed? :: sensing>
loudness
timer
reset timer
current [year v]
translate [hello!] to (English v) :: sensing
language :: sensing
() + ()
() - ()
() * ()
() / ()
pick random (1) to (10)
() > (50)
<() < (50)>
() = (50)
<> and <>
<> or <>
not <>
join () ()
letter (1) of [apple]
length of [apple]
[apple] contains [a]?
() mod ()
round ()
[abs v] of ()
(variable)
set [variable v] to (0)
change [variable v] by (1)
(list :: list)
add [thing] to [list v]
delete (1) of [list v]
delete all of [list v]
insert [thing] at (1) of [list v]
replace item (1) of [list v] with [thing]
item (1) of [list v]
item # of [thing] in [list v]
length of [list v]
<[list v] contains [thing]?>
- 457guyAlternateAcc
-
Scratcher
9 posts
Little Robot you could control and code
That would cool but would people playing the project be able to use it? Like arrow keys and such?
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
That would cool but would people playing the project be able to use it? Like arrow keys and such?1st. I feel like you could look through the camera.
2nd. You could turn this on as a mode.
- 457guyAlternateAcc
-
Scratcher
9 posts
Little Robot you could control and code
Sounds cool! I'm getting a virtual pet vibes from the robot though, could you play games with it? Depending?
- Thiago_le_meilleur
-
Scratcher
1000+ posts
Little Robot you could control and code
Does the Scratch fondation have enough money to make electronics robots ?
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
Sounds cool! I'm getting a virtual pet vibes from the robot though, could you play games with it? Depending?You can code it to
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
Does the Scratch fondation have enough money to make electronics robots ?They have an unreleased thing called the ScratchBit with similar controls: https://en.scratch-wiki.info/wiki/ScratchBit so it's not impossible
- 457guyAlternateAcc
-
Scratcher
9 posts
Little Robot you could control and code
I do not know if they do or not. Scratchbit sounds really close to a robot too
Last edited by 457guyAlternateAcc (March 24, 2025 11:36:36)
- 457guyAlternateAcc
-
Scratcher
9 posts
Little Robot you could control and code
really confused how they did not release it… Is it a work in progress?Last edited by 457guyAlternateAcc (March 24, 2025 11:39:19)
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
I don't knowreally confused how they did not release it… Is it a work in progress?
- MagicCoder330
-
Scratcher
1000+ posts
Little Robot you could control and code
what would stop someone from doing something like this?
when robot connected :: extension hatI simplified it a bit because im lazy, but still?
flail around terribly in an attempt to break something
define flail around terribly in an attempt to break something
play sound [loud, terrible screech v] until done
forever
move all joints (99999999 ) :: extension
end
Last edited by MagicCoder330 (March 24, 2025 15:01:56)
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
what would stop someone from doing something like this?Those 2 blocks don't exist in my idea. So nowhen robot connected :: extension hat
flail around terribly in an attempt to break something
define flail around terribly in an attempt to break something
forever
move all joints (99999999 ) :: extension
end
- MagicCoder330
-
Scratcher
1000+ posts
Little Robot you could control and code
It was used to simplify it. you posted too many blocks for me to remember. This situation could still occur with the blocks you have mentioned.what would stop someone from doing something like this?Those 2 blocks don't exist in my idea. So nowhen robot connected :: extension hat
flail around terribly in an attempt to break something
define flail around terribly in an attempt to break something
forever
move all joints (99999999 ) :: extension
end
- BigNate469
-
Scratcher
1000+ posts
Little Robot you could control and code
Can you please remove the blocks that already exist in Scratch from the OP? This could easily be made as an extension with ScratchBot-specific blocks only or add the blocks to the block pallet without having to create a whole new app for it- and therefore you don't need to suggest blocks that already exist. All of your list, variable, and operators blocks can be removed from the OP, most of the sensing blocks can be removed from the OP, and all of the sounds blocks can be removed from the OP (some of them are now a part of the music extension, but they do exist).
- Mozboz
-
Scratcher
1000+ posts
Little Robot you could control and code
This is somewhat already possible in older versions, and maybe later versions, with the LEGO extensions. I had a lot of fun doing it in 1.4 when I was - I'm not going to say younger - maybe eight, so an updated and simplified version for 3.0 would be great. Also, it could be useful at code clubs and schools. Support.
I write support and no support as somewhat of a tone indicator. I do not think simply saying support or no support is constructive.
I write support and no support as somewhat of a tone indicator. I do not think simply saying support or no support is constructive.
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
TrueIt was used to simplify it. you posted too many blocks for me to remember. This situation could still occur with the blocks you have mentioned.what would stop someone from doing something like this?Those 2 blocks don't exist in my idea. So nowhen robot connected :: extension hat
flail around terribly in an attempt to break something
define flail around terribly in an attempt to break something
forever
move all joints (99999999 ) :: extension
end
when I'm touched :: events hat
set spin speed to (99999) :: motion
spin (99999999999) times :: motion
- StefanLovesAlphabets
-
Scratcher
100+ posts
Little Robot you could control and code
Can you please remove the blocks that already exist in Scratch from the OP? This could easily be made as an extension with ScratchBot-specific blocks only or add the blocks to the block pallet without having to create a whole new app for it- and therefore you don't need to suggest blocks that already exist. All of your list, variable, and operators blocks can be removed from the OP, most of the sensing blocks can be removed from the OP, and all of the sounds blocks can be removed from the OP (some of them are now a part of the music extension, but they do exist).It's a mode for a project. So that's why I did it
- jmb1293634
-
Scratcher
1000+ posts
Little Robot you could control and code
maybe this as an extension also found a nice robot face to add to them
hex code #aaaa00
nooooo! the robot didn't save
edit made a mockup on project which does save the robot head here
hex code #aaaa00
nooooo! the robot didn't save
edit made a mockup on project which does save the robot head here
Last edited by jmb1293634 (March 30, 2025 07:43:57)
- 457guyAlternateAcc
-
Scratcher
9 posts
Little Robot you could control and code
Hey I have not been here for a while because I've been listening to the song “do you like air conditioning”, although the robot could be insanely cool, wouldn't there be a problem because it's physical?

- 457guyAlternateAcc
-
Scratcher
9 posts
Little Robot you could control and code
It was used to simplify it. you posted too many blocks for me to remember. This situation could still occur with the blocks you have mentioned.what would stop someone from doing something like this?Those 2 blocks don't exist in my idea. So nowhen robot connected :: extension hat
flail around terribly in an attempt to break something
define flail around terribly in an attempt to break something
forever
move all joints (99999999 ) :: extension
end
If they thought twice? Before doing it
Last edited by 457guyAlternateAcc (March 29, 2025 17:13:00)