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

#1 2008-09-02 21:13:43

JD_Wardrop
Scratcher
Registered: 2008-07-04
Posts: 69

Another glitch from 1.3 Beta

yup. another one. you can put letters in the variable box ex. (set ammo to(hello))

Offline

 

#2 2008-09-02 21:42:11

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Another glitch from 1.3 Beta

JD_Wardrop wrote:

yup. another one. you can put letters in the variable box ex. (set ammo to(hello))

That is a feature. It's a string. Now you can set your variable to:

a number
a word
a phrase
a numbered phrase
a list (or just use the lists XD)
etc

Now you can set it to letters and have a sprite say:

<say[ <{ Hello World }> ]for( <{ Hello World }> )secs>


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-09-02 22:32:24

JD_Wardrop
Scratcher
Registered: 2008-07-04
Posts: 69

Re: Another glitch from 1.3 Beta

thats not what i mean. this is what i mean <set{ ammo }to( flat stanley ). you can type in letters in the variable box.

Offline

 

#4 2008-09-02 23:07:15

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Another glitch from 1.3 Beta

that's a new feature

Offline

 

#5 2008-09-03 02:23:13

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Another glitch from 1.3 Beta

That's right. Scratch 1.3 lets you assign strings to variables and list entries.

There are, of course, some contexts where strings don't make any sense (as in the example of letting a sprite say something for 'aString' secs). In such cases the string is handled by Scratch as zero.

Being able to handle strings in Scratch is way cool, though. Now you can assemble words into sentences using a list, you can compare string variables using the "equals" block, and you can even broadcast string variables or switch to a costume / play a sound defined by a string variable!


Jens Mönig

Offline

 

Board footer