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

#1 2008-08-11 21:17:36

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Codeing limit?

OKay, I am making an Ai for one of my games and one of the scripts has gotton extremly long. So long infact, that at the end, some of it dissapears. I am serios, there is a line where the script gets chopped off, in the middle of a block, about 7/8s down my code. Also, The rest of it is still there (The chopped off part) , but invisible. Any Ideas?

Last edited by Bobby500 (2008-08-12 07:30:08)

Offline

 

#2 2008-08-11 21:19:10

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Codeing limit?

Are you serious? Can you upload the project so I can see it?


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-08-11 21:42:38

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Codeing limit?

wow. I've noticed that with long scripts, when adding to it it becomes very slow. But only with that one script. Like, when I was making the movement for my pokemon game (which actually is more complex than it sounds, because if you just tap a key it'll only point in that direction, but not move, also there's fishing and stuff to take into account, plus if you tap a key and you're already pointing in that direction then you actually do move, also costumes n' stuff), the script got immensly slow. Eventually I divided it into four seperate scripts, one for each direction.

Take Archmage's suggestion: could you upload it?

Offline

 

#4 2008-08-12 07:05:54

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Codeing limit?

Sure. It is only one script, I probably should have made that clear. Just so you know. And yes, It has gotton extremly slow.

Offline

 

#5 2008-08-12 07:28:26

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Codeing limit?

Here is the link. The extremly long script is on the mouse.  http://scratch.mit.edu/projects/Bobby500/239173

Last edited by Bobby500 (2008-08-12 07:28:38)

Offline

 

#6 2008-08-12 07:36:17

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Codeing limit?

Crazy... Everything just stops  smile

The Strange thing is: you have another script below it (enough space between). That one Script just stops...


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#7 2008-08-12 07:52:52

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Codeing limit?

JSO wrote:

Crazy... Everything just stops  smile

The Strange thing is: you have another script below it (enough space between). That one Script just stops...

I know, its crazy. The funniest part is, that portion of the script is still there, its just invisible. If you try to pull it out, scripts will pop up out of nowhere.

Offline

 

#8 2008-08-12 07:55:23

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Codeing limit?

Looks like you found an internal limitation in Scratch!  I suggest you subdivide into smaller stacks of blocks.  Interesting to see!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#9 2008-08-12 07:58:44

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Codeing limit?

Paddle2See wrote:

Looks like you found an internal limitation in Scratch!  I suggest you subdivide into smaller stacks of blocks.  Interesting to see!

Thats probably whats going to end up happening.  sad

Last edited by Bobby500 (2008-08-12 07:58:59)

Offline

 

#10 2008-08-12 23:29:00

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Codeing limit?

The sometimes happens to me, but I find that just dragging the script around helps.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer