This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-28 13:42:34

woofwoof301
Scratcher
Registered: 2008-06-01
Posts: 100+

The List

Is there a certain limit the list can on to? I'm making a project where you click to stamp a block on a scrolling platform. It adds the mouse x onto a list wheneveer you click. Would there be a limit that the list can go to? By the end of the game there will be about 1000 items in each list depending on how often the player clicks.


Thanks

.

I have another problem I felt was an advanced topic to ask you good folk. Today, I uploaded a game. It was supposed to be a terrain maker, and you could position blocks next to each other to move around. Then, I got the ambtion to not only be able to stamp blocks, BUT ALSO be able to scroll and stay in the same relative position. This is what happened It works. Wooohoo! Cheers!

However, it is EXTREMELY FLASHY. You're supposed to be able to stamp blocks and such, but instead, you get a repeatedly flashing object that irritates the eye. Help?

This still has a right to be labeled Lists? because the project I was telling you about was based on lists.

Please view the project. It is really buggy, and I know quite a few of you have more skills than I do and can fix it in a breeze. Thanks.



Woof

Last edited by woofwoof301 (2011-07-28 19:17:53)

Offline

 

#2 2011-07-28 14:00:53

RUMCHEERYPOOPOO
Scratcher
Registered: 2008-12-23
Posts: 100+

Re: The List

it might be a little laggy, but it should work.

Also, shouldn't this be in all about scratch?


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#3 2011-07-28 14:31:06

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: The List

A list is initialized with an OrderedCollection of 1000 cells. An OrderedCollection can grow after creation, so there is no problem.

Offline

 

#4 2011-07-28 15:00:54

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: The List

No problem at all, in theory. There are, of course, far away limits depending on the memory size. Of course these are way too big to ever reach in Scratch (unless you have a full memory beforehand)...

Offline

 

#5 2011-07-28 18:15:49

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: The List

I've seen projects with over 10000 items in a single list (I think one reached 14000 actually), and it functioned fine  smile

BTW, the project was adding x position like... whenever the mouse moved? So you won't have a problem xD (You can find the project here.)

Last edited by Jonathanpb (2011-07-28 18:17:43)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2011-07-28 18:49:01

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: The List

My Star Trek game has a list for the long range scanner with 15,001 entries in it.  It is somewhat slow to load, but it works fine.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#7 2011-07-29 04:49:50

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: The List

Unfortunately, your project encountered lots of lag which is due to the stamping and repeating, and not the lists. Lists work fine by themselves.

So maybe next time try the pen (ok, it's round, but it works). Just a simple
- go to X and Y
- pen down
- pen up
should reduce lag noticeably.

Offline

 

#8 2011-07-29 07:26:40

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: The List

I think this would fit better in All About Scratch.


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#9 2011-07-29 12:52:04

woofwoof301
Scratcher
Registered: 2008-06-01
Posts: 100+

Re: The List

whizzer wrote:

I think this would fit better in All About Scratch.

This isn't advanced enough?

LS97 wrote:

Unfortunately, your project encountered lots of lag which is due to the stamping and repeating, and not the lists. Lists work fine by themselves.

So maybe next time try the pen (ok, it's round, but it works). Just a simple
- go to X and Y
- pen down
- pen up
should reduce lag noticeably.

thanks dude

Offline

 

#10 2011-07-29 17:04:44

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: The List

In my OS, Static OS, I have a list with 1024 items.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

Board footer