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

#1 2009-06-19 20:06:13

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

find and replace

After spending a few hours just replacing variables in my game I can see how useful this would be.

You could put some blocks in a little box then it would highlight matches and replace them if you wanted.


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

 

#2 2009-06-19 20:09:58

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: find and replace

do you mean something like  you add a box containing a variable, then you add another variable to it, and when you do all of the variables on that sprite get changed from one variable to the other?


http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

#3 2009-06-19 20:12:07

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

Re: find and replace

I mean something like the text version

There is one box that you can drop scripts in and it searches for matches. If it finds a matching script it replaces 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

 

#4 2009-06-19 20:17:24

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: find and replace

I wish there was that too. Not that I would ever need to use it, but it would be helpful

Offline

 

#5 2009-06-19 20:23:17

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: find and replace

I would love something like that. Too many times I've been trying to replace a certain sequence of blocks for another, and it gets tedious searching for and replacing scripts.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#6 2009-06-19 20:41:33

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: find and replace

WAAAAAAAY too many times I have a bunch of sprites with the same script, and when I want to modify that script.....
I would LOVE this idea

Offline

 

#7 2009-06-20 10:24:36

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

Re: find and replace

I would love this!

Offline

 

#8 2009-06-20 10:30:58

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: find and replace

It is useful, especially if you want to edit something fast.


Scratchin' since 2007

Offline

 

#9 2009-06-20 10:45:28

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: find and replace

That is definitely a must for Scratch!


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#10 2009-06-20 12:54:17

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: find and replace

ok yes i understand now lol.  but maybe it would be even better if you could drop in a group of scripts as well instead of just one, therefore say if you had an
<if><(<{happy}> <=>10)>
<broadcast[ hello

but you made an error on the broadcast and the value so...

changed to
<if><(<{happy}> <=>11)>
<broadcast[ goodbye


http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

Board footer