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

#1 2009-05-13 01:06:48

itsmomito
Scratcher
Registered: 2008-03-28
Posts: 100+

Variable names different by only upper/lower case are linked

Did you know if you have two variables, and their names are the same, except they have different capitalization for the first letter, the variables will both change if you change one. See this project for an example:


http://scratch.mit.edu/projects/itsmomito/523181

Offline

 

#2 2009-05-14 21:28:29

kgordon
Scratcher
Registered: 2009-02-26
Posts: 100+

Re: Variable names different by only upper/lower case are linked

itsmomito wrote:

Did you know if you have two variables, and their names are the same, except they have different capitalization for the first letter, the variables will both change if you change one. See this project for an example:


http://scratch.mit.edu/projects/itsmomito/523181

You're right, both heights change when you change one, a fascinating glitch.

Offline

 

#3 2009-05-14 21:45:25

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

Re: Variable names different by only upper/lower case are linked

It only does that Online.  In Scratch, they are separate variables.  Weird.


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

Offline

 

#4 2009-05-14 22:38:55

Mike_W
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: Variable names different by only upper/lower case are linked

Could be an easy way to know if you are online - and do a little feature limiting to deal with the speed and the way the web player works

Although if they fix it then we have a problem.

Offline

 

#5 2009-05-18 17:27:57

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Variable names different by only upper/lower case are linked

You can do that with costumes too. Try it. Make a costume named "Costume1" and one called "Costume2" from the home screen.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

Board footer