Suggestion — Variable count

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

A count of how many times you have used a variable and a way to view each use.

I’d use it for this type of project:

Any! I’m sure I’m not the only one who creates too many variables and don’t know which ones they’ve used.

Here is an example design I’ve made:


@omtl

18 Likes

First finally

2 Likes

a find button for this would be nice

3 Likes

Or a warning message prior to deletion (beta exclusive) saying whether or not the variable is being used.

Your concept is very convenient, though…

1 Like

Yep, same here. Created a lot of variables for my ★COURSE and ProPainter Studio projects.

1 Like

Yeah, take a look at my calculator project. 23 variables😂
Idk what some of the do because they are from a year ago

2 Likes

Amateurs… (Sorry if I hurt your feelings in any way)

I have 150 games variables and 12 self variables (not including the 3 included self variables).

So, 162 variables for just StarCourse alone.

2 Likes

:no_mouth:

2 Likes

cool idea

2 Likes

This would be useful for meh

2 Likes

Yes! I need this! It would make it easier to remember what something does, and where to find it.

2 Likes

I try to use as little variables as possible, so a majority of my variables are (self), but that makes it a little confusing sometimes.

3 Likes

Yeah, true. I might eventually use broadcast message blocks for some of the variables I do have. (“char.destroy” and “game.target” are variables I can replace with broadcast message blocks. I’ll need to keep track of variables I don’t use anymore so I delete the right ones once I’m able).

Variables that cannot be replaced with broadcast message blocks:

  • Tile Data
  • Level Data & Sub Level Data
  • Variables for Glitch Prevention
  • Variables for generating menus (to lower the amount of game rules)
  • Variables for setting colors to a button, star, and background
  • Any variable that doesn’t immediately reset back to 0 after running the entire game rule.
2 Likes

Strike that, I used the variables way too many times in one rule to be able to replace them with broadcast message rules…

1 Like

A find button would be cool
Shortcuts has that and its super needed

2 Likes

My next game :eyes: has 38 variables and that hard to keep track of…

2 Likes

Wow smart
A great idea :+1:

2 Likes

That will help to show where the variable comes from

4 Likes

It is a very good idea :grinning::grinning_face_with_smiling_eyes:

1 Like

Yes this would help. I often can’t keep track of my variables.

1 Like