Create variables/images

A feature I’d like to see in Hopscotch is:

the ability to create variables/images

I’d use it for this type of project:

making a coding language

Here are some examples of Hopscotch code that could be improved if we had this:

you wouldn’t have a bunch of variables just in case the user decides to make a bunch of variables in a coding language

Here is an example design I’ve made:

Create Variable (name) Set to (value)

I’ve seen something similar in another programming languages, it looks like this:

creating elements in JS, I haven’t used this much but they definitely seem helpful when you can’t predict the future

Should this be added?
  • Yes
  • No
  • Maybe

0 voters

if we had self(clone index) variables this could be done pretty easily but we don’t

15 Likes

I need this in my life

5 Likes

Yes

This would make adding variables to my coding language project 100x easier

4 Likes

Great idea!

4 Likes

i’d like this

4 Likes

There’s literally nothing that would make you say no to not needing this

5 Likes

Variables that can be created mid play? Yes please.

4 Likes

Yes hopscotch needs this

2 Likes

Yessss
I used clones for variables in EGCODE lol

1 Like

Creating variables mean you need to type the name of the variable, which… well

1 Like

Yes yes yes we need this. Gimme now

1 Like

Yes this would help a lot for me

3 Likes

How would you refer to the variable to use it after it is created?

I’m pretty sure we do? That’s one of the main blocks I use.

Another way to do this pretty easily (though it’d be ugly) is using In string, replace something with something.

2 Likes

for reference

2 Likes

that’s a pretty good question that I’m unsure how to answer

I don’t think so. you can’t do “variable (self clone index 2)”—aka Access Clone Attributes

3 Likes

I agree, we should add this.

2 Likes