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

#1 2012-09-25 19:26:40

LEGOengineer261
Scratcher
Registered: 2011-11-16
Posts: 100+

Long scripts are making programming slow...

I am working on a game with a giant script, and I constantly have to debug and go back and edit it... But when I do that it takes about 10 seconds when I try to drag something or edit the value...
Is there any way I can avoid this? Is there some way I can edit scratch in the squeak-thingy and use simple graphics or something?


http://i1156.photobucket.com/albums/p562/LEGOengineer261/IronmanSERIOUSBOSS.jpg

Offline

 

#2 2012-09-25 19:52:11

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Long scripts are making programming slow...

on graphics: Not that I know of, but I think Python grants that ability.

I often break the big script into smaller ones (using the "broadcast and wait" block.  While this means that there is a slight delay every time you use a broadcast block, it makes editing blocks a lot faster.

Other than that, my advice is code to entire chunks of the script and snap the entire chunk in at once, rather than inserting each block into the giant script individually

Last edited by MoreGamesNow (2012-09-25 19:52:31)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2012-09-26 14:41:09

LEGOengineer261
Scratcher
Registered: 2011-11-16
Posts: 100+

Re: Long scripts are making programming slow...

MoreGamesNow wrote:

on graphics: Not that I know of, but I think Python grants that ability.

I often break the big script into smaller ones (using the "broadcast and wait" block.  While this means that there is a slight delay every time you use a broadcast block, it makes editing blocks a lot faster.

Other than that, my advice is code to entire chunks of the script and snap the entire chunk in at once, rather than inserting each block into the giant script individually

Thanks, that gives me an idea, I'll use broadcast blocks for each section of programming, then when I finish I'll snap em all together and make it faster... thanks for the help!  smile


http://i1156.photobucket.com/albums/p562/LEGOengineer261/IronmanSERIOUSBOSS.jpg

Offline

 

#4 2012-09-28 11:34:20

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Long scripts are making programming slow...

MoreGamesNow wrote:

on graphics: Not that I know of, but I think Python grants that ability.

you mean m30w?

Offline

 

#5 2012-09-28 12:20:53

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Long scripts are making programming slow...

Is the program running while you edit this script? If it is, hit the stop sign before editing, it will be smoother then.


Why are the secret organizations getting all the attention?  mad

Offline

 

#6 2012-09-28 12:40:19

LEGOengineer261
Scratcher
Registered: 2011-11-16
Posts: 100+

Re: Long scripts are making programming slow...

sonicfan12p wrote:

Is the program running while you edit this script? If it is, hit the stop sign before editing, it will be smoother then.

Nah, the script is always stopped when I edit it, its just slow cause it has like 1000 blocks or something  tongue
But I distributed the long script into sections by using the broadcast and wait block, so its goin a bit faster now.


http://i1156.photobucket.com/albums/p562/LEGOengineer261/IronmanSERIOUSBOSS.jpg

Offline

 

#7 2012-09-28 12:49:20

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Long scripts are making programming slow...

LEGOengineer261 wrote:

sonicfan12p wrote:

Is the program running while you edit this script? If it is, hit the stop sign before editing, it will be smoother then.

Nah, the script is always stopped when I edit it, its just slow cause it has like 1000 blocks or something  tongue
But I distributed the long script into sections by using the broadcast and wait block, so its goin a bit faster now.

Oh my, that is huge. What are you making? Command and Conquer?  tongue


Why are the secret organizations getting all the attention?  mad

Offline

 

#8 2012-09-28 12:58:16

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Long scripts are making programming slow...

roijac wrote:

MoreGamesNow wrote:

on graphics: Not that I know of, but I think Python grants that ability.

you mean m30w?

Oops, I meant panther xD


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#9 2012-09-28 13:16:59

LEGOengineer261
Scratcher
Registered: 2011-11-16
Posts: 100+

Re: Long scripts are making programming slow...

sonicfan12p wrote:

LEGOengineer261 wrote:

sonicfan12p wrote:

Is the program running while you edit this script? If it is, hit the stop sign before editing, it will be smoother then.

Nah, the script is always stopped when I edit it, its just slow cause it has like 1000 blocks or something  tongue
But I distributed the long script into sections by using the broadcast and wait block, so its goin a bit faster now.

Oh my, that is huge. What are you making? Command and Conquer?  tongue

I am making a huge awesome tun based strategy game... 1s1s > smile


http://i1156.photobucket.com/albums/p562/LEGOengineer261/IronmanSERIOUSBOSS.jpg

Offline

 

#10 2012-09-28 14:28:47

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Long scripts are making programming slow...

LEGOengineer261 wrote:

sonicfan12p wrote:

LEGOengineer261 wrote:


Nah, the script is always stopped when I edit it, its just slow cause it has like 1000 blocks or something  tongue
But I distributed the long script into sections by using the broadcast and wait block, so its goin a bit faster now.

Oh my, that is huge. What are you making? Command and Conquer?  tongue

I am making a huge awesome tun based strategy game... 1s1s > smile

strategy game. 1s1s. AI. Bad idea!  tongue  Well, it's a good idea, but it will run unbearably slow most likely. Regular non 1s1s AI run very slow.


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer