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
it might be a little laggy, but it should work.
Also, shouldn't this be in all about scratch?
Offline
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
I've seen projects with over 10000 items in a single list (I think one reached 14000 actually), and it functioned fine
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)
Offline
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
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
In my OS, Static OS, I have a list with 1024 items.
Offline