Discuss Scratch
- Discussion Forums
- » Show and Tell
- » TextScratch - A programming language in Scratch.
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Ended until further notice.
I am currently working on a Text Based programming language - in Scratch!
Here is some sample code. You currently can't programm this.
So what does all this do?
me = Cat - Sets your sprite to ScratchCat.
say “I am about to draw a square” wait 2 - Says the sentence for 2 seconds.
pen clear - Calls the pen function named clear, e.g. clears everything.
pen off - Calls the pen function named off, it turns the pen off.
position x 0 y 0 - Goes to position (0,0).
pen on - Turns the pen on.
pen color #ea0000 - Sets the pen color to #ea0000, so █.
repeat 4 - The code after will repeat 4 times.
move 40 - The sprite will move 40 steps.
turn 90 - The sprite will turn 90 degrees.
end - The repeat loop ends.
How do you write the code?
1. Write the code in a text document.
2. See inside the project.
3. Tick the mark of (Write your code in a text document…)
4. Right click the list and select “Import”.
5. Select your text document.
6. Untick the mark of (Write your code…)
7. Click the green flag.
Please tell me if you have ideas.
Project link: https://scratch.mit.edu/projects/466450109/
• me = Cat
You can change the costume of the Sprite. Supported costumes: Boy, Cat, Dog, Dinosaur, Empty, Girl
• wait 1
Wait a specific time.
that to the credits of 0.0.2.
08/01/2021 - Changed “XYZ end” to just “end”
21/12/2020 - Added “wait” command
21/12/2020 - Now the “me” command actually works
21/12/2020 - Added the “me” command [it doesn't work…]
TextScratch - A progamming language in Scratch.
I am currently working on a Text Based programming language - in Scratch!
Here is some sample code. You currently can't programm this.
me = Cat
say "I am about to draw a square" wait 2
pen clear
pen off
position x 0 y 0
pen on
pen color #ea0000
repeat 4
move 40
turn 90
end
So what does all this do?
me = Cat - Sets your sprite to ScratchCat.
say “I am about to draw a square” wait 2 - Says the sentence for 2 seconds.
pen clear - Calls the pen function named clear, e.g. clears everything.
pen off - Calls the pen function named off, it turns the pen off.
position x 0 y 0 - Goes to position (0,0).
pen on - Turns the pen on.
pen color #ea0000 - Sets the pen color to #ea0000, so █.
repeat 4 - The code after will repeat 4 times.
move 40 - The sprite will move 40 steps.
turn 90 - The sprite will turn 90 degrees.
end - The repeat loop ends.
How do you write the code?
1. Write the code in a text document.
2. See inside the project.
3. Tick the mark of (Write your code in a text document…)
4. Right click the list and select “Import”.
5. Select your text document.
6. Untick the mark of (Write your code…)
7. Click the green flag.
Please tell me if you have ideas.
Project link: https://scratch.mit.edu/projects/466450109/
Supported commands
• me = Cat
You can change the costume of the Sprite. Supported costumes: Boy, Cat, Dog, Dinosaur, Empty, Girl
• wait 1
Wait a specific time.
13/01/2021 - Thank you @Greg8128 for this and basically all other posts you made. I'll addUpdate Log
that to the credits of 0.0.2.
08/01/2021 - Changed “XYZ end” to just “end”
21/12/2020 - Added “wait” command
21/12/2020 - Now the “me” command actually works
21/12/2020 - Added the “me” command [it doesn't work…]
Last edited by mybearworld (Feb. 16, 2021 08:34:58)
- Rendangbike2
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
What does repeat end do?
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
What does repeat end do?it ends the repeat block.
when green flag clicked
repeat 10
move 10 steps
next costume
That's how it looks like in Scratch, and in TextScratch
repeat 10
move 10
repeat end
costume +1
Last edited by mybearworld (Dec. 20, 2020 13:05:28)
- Rendangbike2
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Ok! Also how are you going to make it in Scratch?What does repeat end do?it ends the repeat block.
when green flag clicked
repeat 10
move 10 steps
next costume
That's how it looks like in Scratch, and in TextScratch
repeat 10
move 10
repeat end
costume +1
Last edited by Rendangbike2 (Dec. 20, 2020 13:28:17)
- iruxgame
-
Scratcher
100+ posts
TextScratch - A programming language in Scratch.
this is cool! also, could i get permission to put this on my website when you are done with it?
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Yes, I do!Ok! Also how are you going to make it in Scratch?What does repeat end do?it ends the repeat block.
when green flag clicked
repeat 10
move 10 steps
next costume
That's how it looks like in Scratch, and in TextScratch
repeat 10
move 10
repeat end
costume +1
this is cool! also, could i get permission to put this on my website when you are done with it?No sorry, I don't feel well about it.
- gosoccerboy5
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
This sounds tough. Good luck. Wow, that's gonna be hard..
- MintyFries
-
Scratcher
100+ posts
TextScratch - A programming language in Scratch.
Cool! One thing I get tired of in Scratch is all the clicking and dragging. Having the option to type out some syntax would be nice. Of course, I could just use a real engine like Godot, Unity, or UE4, but whatever.
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
This sounds tough. Good luck. Wow, that's gonna be hard..True. I made a programming language in python (very limited, probably preprepreprealpha xD), but in Scratch, there are these purposeful limitations, where I've got to code many of Python's standard functions myself…
Cool! One thing I get tired of in Scratch is all the clicking and dragging. Having the option to type out some syntax would be nice. Of course, I could just use a real engine like Godot, Unity, or UE4, but whatever.At the end, I'm planning you can really use EVERY block and do exactly this. I hope it'll be helpful!
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Bump! Is that a thing in SaT
Any feedback?
Any feedback?
- gosoccerboy5
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Bumps are allowed I think?
Question: why do you need theline? That's probably only gonna make it harder to both create and use TextScratch..
Question: why do you need the
using pen
Last edited by gosoccerboy5 (Dec. 20, 2020 20:31:20)
- gosoccerboy5
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Making every block sounds hard. I probably wouldn't be able to make if statements..
but I'm not you. You're probably gonna be able to do this
(Also I wish you exceptionally good luck on making operators and math statements like ((7 + (5 * 3)) - 2))
but I'm not you. You're probably gonna be able to do this

(Also I wish you exceptionally good luck on making operators and math statements like ((7 + (5 * 3)) - 2))

- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
Question: why do you need theyou're right, I'll remove that.line? That's probably only gonna make it harder to both create and use TextScratch..using pen
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
you're probably gonna be able to do thisThanks

I don't think every block will be done quickly, that IS a huge project, but still.
I probably wouldn't be able to make if statements..That will be hard, but I'll try.
(Also I wish you exceptionally good luck on making operators and math statements like ((7 + (5 * 3)) - 2))I can't wait for it to say 33, then noticing it should actually say 20.
Will be very fun xD
Last edited by mybearworld (Dec. 20, 2020 20:56:28)
- gosoccerboy5
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
I can't wait to see the results. By the way Greg8128 has made a very complex language in Scratch called “CRIS”.
- Rendangbike2
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
i found a duplicate project herePlease don't lie, Anyone can make the same name
Last edited by Rendangbike2 (Dec. 21, 2020 07:26:36)
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
I can't wait to see the results. By the way Greg8128 has made a very complex language in Scratch called “CRIS”.I know CRIS, though I don't get how to work with it xD
i found a duplicate project hereThe only thing same is name and goal (by the name, the goal obviously is the same).
My language works completely different than this.
Oh and bump.
- mybearworld
-
Scratcher
1000+ posts
TextScratch - A programming language in Scratch.
I made the first feature:
should I share it?
me = costume
- Discussion Forums
- » Show and Tell
-
» TextScratch - A programming language in Scratch.




