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

#1 2012-11-07 17:38:00

Kovibodek
Scratcher
Registered: 2012-05-16
Posts: 1

freezing when putting scripts together

I was trying to compress the scripts on my new project number pronouncer, and when I was putting two scripts together, scratch froze. This has happened before, but ended in a minute or two. I waited 20 minutes, still nothing. Tried it 5 times. Then, I got a message saying that squeak was almost out of memory. Pretty huge scripts.

Offline

 

#2 2012-11-07 18:20:22

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: freezing when putting scripts together

The problem is that moving and looking at huge scripts can slow down scratch quite a bit, and if they're large enough, they can even freeze scratch, so this isn't a bug. My suggestion is that you use broadcasts to seperate parts of your script into smaller pieces. Other than that, there isn't much you can do to avoid this.  sad


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2012-11-07 18:21:00

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: freezing when putting scripts together

I have that problem a lot on 1s1s games.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#4 2012-11-08 17:04:17

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: freezing when putting scripts together

Try making it with relatively small scripts each calling broadcasts and when you are ready combine them together into one large script if you want 1s1s, otherwise just leave as broadcasts - easier on the memory.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5 2012-11-13 13:45:15

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: freezing when putting scripts together

If you have variables you can change them into a list (lists crash less) or if you have long scripts then use broadcasts, or [in scratch 2.0] custom blocks.

This also happens to me, but not when putting scripts together, when I try to share the project. The script was actually very short; but there was a huge variable.


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#6 2012-11-14 04:48:26

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: freezing when putting scripts together

If you want it 1s1s use custom blocks.


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#7 2012-11-14 18:47:36

FunDude
Scratcher
Registered: 2010-06-29
Posts: 500+

Re: freezing when putting scripts together

You may have one or two huge scripts, instead break them up into smaller scripts and use broadcasts.


LOL signature fail

Offline

 

Board footer