Syntax of ‘MethylCode’

Huh wait a sec
You can set variables so how do you print them

2 Likes

Ok for here I’ll have debugging.

1 Like

5 commands,

1 Like

Oh
Link please lol
Publish, get link, then unpublish
So we can see your progress live

1 Like

How do I detect those things inside commands?

1 Like

I used next line
dim as UVar varname(
Hello)

That makes a variable named varname and stores a value of ‘Hello’ in it

1 Like

Uhhhhhhhhhhhhhhhhhh… Aaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhh! Pls can I copy from QuadCode?

1 Like

Yes
Maybe change it to make it easier
So smth like

Set hello to:
What
1 Like

I don’t understand. Can you type the code?

1 Like

So

Set x to:
10

Makes a variable named x with a value of 10
It’s just the EGCode method but with different keywords
And no brackets

1 Like
Uh oh! CNt understand.
1 Like

How do I detect that code in the end. The key?

1 Like

Well just set some buffer variable or smth to 1 when a set var is sensed
And for each command, check if the buffer thing = 1
If it is 1, then set the variable to 1

I make variables with clones, each clone having a name variable and a value variable.
When a set var command is sensed then the ‘variable maintenance’ object maeks a clone
The variable set its name to the characters between set and to in the command
Then it waits for the reader to read the next line
Then it sets it value to what the reader is sensing
If you understood this, you can just make it yourself

1 Like

@Electogenius https://c.gethopscotch.com/p/11azvvu1d4
U have been waiting for this.

1 Like

Huh
You added the wrong number in the characters between block
It’s supposed to be 0 and (whatever number)
0 is the first character, not 1

an idea:
add a command where it will render a square → pixel art

1 Like

mind blowing noises

1 Like

Closed due to inactivity (no apparent activity for 3 or more than 3 months). If you want to reopen this collab, just ask in this topic, and we will help you reopen it!

Note: This topic was previously unlisted, but since it was closed, it has been listed to the community again. It is general practice among the leaders to re-list unlisted topics after they have been closed.