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
Are you serious? Can you upload the project so I can see it?
Offline
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
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
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
JSO wrote:
Crazy... Everything just stops
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
Looks like you found an internal limitation in Scratch! I suggest you subdivide into smaller stacks of blocks. Interesting to see!
Offline
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.
Last edited by Bobby500 (2008-08-12 07:58:59)
Offline