Discuss Scratch

mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

Ended until further notice.
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.

Update Log
13/01/2021 - Thank you @Greg8128 for this and basically all other posts you made. I'll add
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)


Signatures are the only place where assets links still work.
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.

Rendangbike2 wrote:

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)


Signatures are the only place where assets links still work.
Rendangbike2
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

mybearworld wrote:

Rendangbike2 wrote:

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
Ok! Also how are you going to make it in Scratch?

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?


achievements:
100 posts::#A34352
became a scratcher::#A34352
first game uploaded::#A34352
first forum post::#A34352
welcome to scratch!::#A34352
mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

Rendangbike2 wrote:

mybearworld wrote:

Rendangbike2 wrote:

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
Ok! Also how are you going to make it in Scratch?
Yes, I do!

iruxgame wrote:

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.

Signatures are the only place where assets links still work.
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.

—————————————————————
Blender lover and YouTuber https://youtube.com/mintyfries
Please check out my new 3D magic wand battle game: https://scratch.mit.edu/projects/468494329/

mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

gosoccerboy5 wrote:

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…

MintyFries wrote:

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!

Signatures are the only place where assets links still work.
mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

Bump! Is that a thing in SaT
Any feedback?

Signatures are the only place where assets links still work.
mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

Another one!

Signatures are the only place where assets links still work.
gosoccerboy5
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

Bumps are allowed I think?

Question: why do you need the
using pen
line? That's probably only gonna make it harder to both create and use TextScratch..

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))

mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

gosoccerboy5 wrote:

Question: why do you need the
using pen
line? That's probably only gonna make it harder to both create and use TextScratch..
you're right, I'll remove that.

Signatures are the only place where assets links still work.
mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

gosoccerboy5 wrote:

you're probably gonna be able to do this
Thanks
I don't think every block will be done quickly, that IS a huge project, but still.

gosoccerboy5 wrote:

I probably wouldn't be able to make if statements..
That will be hard, but I'll try.

gosoccerboy5 wrote:

(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)


Signatures are the only place where assets links still work.
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”.

iruxgame
Scratcher
100+ posts

TextScratch - A programming language in Scratch.

i found a duplicate project here


achievements:
100 posts::#A34352
became a scratcher::#A34352
first game uploaded::#A34352
first forum post::#A34352
welcome to scratch!::#A34352
Rendangbike2
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

iruxgame wrote:

i found a duplicate project here
Please 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.

gosoccerboy5 wrote:

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

iruxgame wrote:

i found a duplicate project here
The 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.

Signatures are the only place where assets links still work.
mybearworld
Scratcher
1000+ posts

TextScratch - A programming language in Scratch.

I made the first feature:
me = costume
should I share it?

Signatures are the only place where assets links still work.

Powered by DjangoBB