Arrays/Lists/Collections in Hopscotch

Thank you @Cutedogs1Forum

5 Likes

Welcome :] I think I’ve seen you in my hs notifications before

3 Likes

I just joined the forms 2 days ago. Oh wait you mean on the hopscotch app.

4 Likes

Were any of your notifications remixes of your projects by any chance? That’s what happened to me (quite a lot, too).

3 Likes

I don’t remember but it was something like that I think

2 Likes

Hehehe :face_with_hand_over_mouth: :face_with_hand_over_mouth:

1 Like

There are lots of things a list/array could be useful for:

  1. Grid Lists
  2. Storing multiple custom levels for a platformer without needing to create multiple extra variables
  3. Finding which index a certain item is at in one frame instead of 100+ frames
  4. storing values to depth sort objects
  5. storing data where the length of each item varies

I could only think of 5, but there are definitely more things that could be done using lists/arrays

2 Likes

boop, do we need to merge? i saw some other topics being merged into that one ^^^

3 Likes

Yessss!!! I wholeheartedly agree. I’ve been kinda building my own list algorithms in the app instead. This would save so much time

2 Likes

I have too!

2 Likes

You can do the sorting with different lengths using my list project at the top.

1 Like

There are ways to make makeshift lists in Hopscotch, but the main downside is that they take much longer to get an item from the list than if you were using actual lists/arrays.

2 Likes

I know right! I agree that’s why my word search generator is sooooooo slow!

2 Likes

The hopscotch team would probably not limit it. After all strings aren’t limited @Crosbyman64

1 Like

If this is added it will need to be available to the non subscribers too. As people like me who can’t afford the subscription make amazing projects too! Just look at my word search generator that was featured!

3 Likes

Well, don’t get your hopes up. Lists/arrays may be considered too confusing for beginner coders, so it’ll most likely be kept exclusively behind Advanced Mode.

I hope we can see this being introduced before the end of this year, but it’s not a 100% guarantee. There’s still a lot THT needs to do and/or consider before introducing this into HS.

2 Likes

very kind reminder for everyone


replying to: Arrays/Lists/Collections in Hopscotch - #102 by Mathematics2

so yes, @Mathematics2, lists are indeed a requirement for some projects, like yours, but i do agree with @Crosbyman64 that arrays is very confusing for some beginners. If THT decide someday to add lists, that may fall into sub category, but THT could also decide to make this free for everyone with a tutorial.

and no, if someone decides to use your project to add list feature, that remix will not fall into masterpiece category unless they made significant modifications, which is extremely rare ngl

3 Likes

Lists aren’t just something to make your life easier like seens or advanced music notes. No lists are something that Is a requirement for some projects! Lists are a basic hopscotcher right!
Now who’s with me!

  • I agree!
  • I think it should be available to everyone but have a setting to turn it on and off
  • I think it should be available only to subscribers
  • I think it should not be added

0 voters

Reposting because the post is already too old to be edited.

1 Like

In addition, crosby is saying that while lists are an excellent coding tool, the hopscotch team is working on other tasks as well to improve hopscotch as a whole. I’m certain lists will come with time, however they’re a relatively small development team and so it may take some time. So no worries,

Tri-angle makes a good point here - most of the community is respectful and honest when it comes to code taken from other developers, and so I don’t think people would steal and make huge changes without crediting you or asking permission first. Your concern is completely justified, but rest easy knowing that the chance of that happen is very low. :)

3 Likes

Opps Sorry I didn’t see that as not polite. I deleted that post

1 Like