Regular Text with Variables included

A feature I’d like to see in Hopscotch is: Having both variables and regular text in the same Text object.

I’d use it for this type of project: Games that use lots of variables.

Here are some examples of Hopscotch code that could be improved if we had this: FPS counters, Showing the current value of something next to the maximum (i.e 10 out of 20 completed)

Here is an example design I’ve made:

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

If you look at the C# code above, the integer “val” is set to 55, then prints the text: Value = “val” The result is the program printing: “Value = 55”

Can I get some opinions on this? I think this would be one of the most useful features on Hopscotch (for me at least) Thanks for reading my suggestion :slight_smile:

18 Likes

Also sorry for the bad example design :sweat_smile: i don’t really have any photo editing apps

4 Likes

This would be great! It would be so helpful to just say ‘Score: (Var)’ instead of needing two text objects.

Also, it would be great if you could set variables to text, as well.

@Ana @Elizabeth @AwesomeOnion, Look at post 1.
(I’m not sure if I should tag Elizabeth but they seemed to be interested in our ideas.)

7 Likes

I’m pretty sure that’s called “strings” in some other languages. But both of these features would greatly improve projects

4 Likes

Yea you can already basically do that but it doesn’t exactly work

7 Likes

I know, I just wanted to make sure you (and everyone else) would understand what I meant.


Which makes it entirely pointless.

6 Likes

What you showed is how it should work.

7 Likes

I thought it would work when I first tried doing it a while back but it didn’t

5 Likes

This is something I really would like as well, it would be a huge improvement to Hopscotch!
Now you need to have multiple text objects if you want to include a variable…

7 Likes

What exactly does this mean?

3 Likes

If I want to have a project with a sentence that says “Your score is 23”, I need to have one text object saying “Your score is” and one that updates the score.

5 Likes

Oh I thought you meant something else

4 Likes

This would be awesome. Have you tagged Ana about this yet?

4 Likes

@MISSION_IMPOSSIBLE already did.
Sorry for the tag

4 Likes

Bump

3 Likes

Nice idea! (How have I not seen this yet??)

I think implementation would look great if it’s done as something similar to what Siri Shortcuts does:
image

3 Likes

These are called strings and would explode on impact with popularity and everyone would like them

7 Likes

Yup

2 Likes

Maybe I’d update from 3.37.2 :)

4 Likes

wait what?

2 Likes