Arrays/Lists/Collections in Hopscotch

This might be something we’ll try in the beta editor, but no guarantees on when that will be.

One reason we haven’t implemented a collection type in Hopscotch is that for it to be useful, I think you’d need a lot of built-in functionality. This would clutter up the editor for more beginner users.

In the comments can you give specific examples of what you’d use collections for? That will help me think about what they would enable.

Also, feel free to shout out ideas about what to call them!

Again, this is not on the roadmap yet, it’s strictly exploratory :slight_smile:

21 Likes

Mainly color storage I’d think, as well as maybe a “settings” array containing all option preferences (for large things like E-Pad)

Also, reading an array would be far better than doing if loops to determine what variable to read

8 Likes

I don’t know what you’d call them or use them for, but I was thinking you would have an ‘Advanced Editor’ option, and if you turned that on, you would have a whole bunch of helpful, more advanced options.

9 Likes

That would be awesome!

2 Likes

I agree with AE and MI.
I like the idea of an “Advanced Editor” option a lot

7 Likes

An array would be awesome, my ML project would work so much better with it

4 Likes

Arrays in HS?

Haha that would mean I could do my ML project in it too!

3 Likes
  • Points for things like paths in games
  • Points for drawing pads with undo and layers
  • Letters/words for games using a keyboard
  • Positions for platforms and obstacles in a platformer game
  • Keeping track of an object and all of its clones
  • Making Hopscotch editors/players in Hopscotch
6 Likes

Awesome idea! You guys are actually making premium worth buying now. In fact, if you end up getting that bug fixed that is making me unable to see shapes on my iPad, I think I could convince my parents to buy premium for the family using these new features as the benefits of upgrading. I’m composing an email to you now explaining the bug in detail, but it is the same bug @FearlessPhoenix is experiencing.

3 Likes

Okay, thanks!

1 Like

What is that?

2 Likes

Woah! I’d use them for many things, most of which @Awesome_E already suggested. Depending on if you are planning to implement strings in lists or not, the use cases varies a bit.

I’d definitely love to see strings in lists as well in the future if that is possible!

And like the “Turn on the beta editor” toggle an “Advanced editor” toggle that would be a bit more easily accessible (perhaps you could put it in the editor itself) would be a super cool addition to the app!

6 Likes

Oh yes, I’ve been waiting for this so much!
They can be useful for animation projects, because you can use them to store object positions.

4 Likes

I would use a collection for:

  • Strings (even if it’s just numbers, I could still figure it out),
  • Saving multiple scores
  • Making less variables
  • Saving colours
  • Probably more but I can’t really think of anything else rn.
5 Likes

Machine Learning

3 Likes

Type Casting

Bool
Int
Double
String
Array
Dictionary
Sound
Optional
Set
Range
Node

Enums!

5 Likes

This sounds like a cool idea! I agree with A_E, that would be really cool!

6 Likes

.getUserName -> String
.isProjectFeatured -> Bool
.currentTime -> Double
.howManyLikes -> Int
.UsingApplePencil -> Bool
.ProjectAge -> Double
.howManyViews -> Int
.currentUserDidLike -> Bool
.currentUserPlaysCount -> Int
.totalPlayingUsersRightNow -> Int

Stored Variables that save when a user leaves, and are the same when the come back

High score variables that update for everybody
(Then you can have a UserName plus their HighScore being saved)

7 Likes

It sounds like what you guys want is the ability to use variables to store different data types, like colors, images, and strings.

Is that accurate?

10 Likes

Yes, adding new data types would be incredible!

3 Likes