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

#1 2008-09-08 23:16:28

MasterOfMac
Scratcher
Registered: 2008-02-01
Posts: 62

Strings with variables!

I decided to post something really obvious that no one has brought up on the forums...

You can make a list, and print that list by dragging the list's value block into the "say" block of a moving sprite.
So... I could have a midpoint sprite on a segment, and then have a list whose first value is a string, second is a variable, third is a string, fourth a variable.

"X: 44 Y: 33"
or
"You bought 15 marshmellows and 67 tarantulas"
or something else.
Sorry, it's just exciting for me. I'm into simulations... even if they're limited to 40 frames a second... lol


*sarcasm*

Offline

 

#2 2008-09-09 01:27:52

vikaros
Scratcher
Registered: 2007-06-04
Posts: 100

Re: Strings with variables!

Good find!  It will be exciting to see how people use this feature.  Have you used it yet in any shared projects?

Offline

 

#3 2008-09-09 05:46:03

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

Re: Strings with variables!

vikaros wrote:

Good find!  It will be exciting to see how people use this feature.  Have you used it yet in any shared projects?

I have used that feature a couple of times now with projects I have shared.  It works great except in Hamlet Reader the behavior is different online then when it is downloaded.  Online it appears to be stripping out the carriage return characters I am sticking between list elments.

http://scratch.mit.edu/projects/Paddle2See/258582


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

Offline

 

#4 2008-09-10 15:53:26

MasterOfMac
Scratcher
Registered: 2008-02-01
Posts: 62

Re: Strings with variables!

vikaros wrote:

Good find!  It will be exciting to see how people use this feature.  Have you used it yet in any shared projects?

Right now all I've got time for (outside of school) is the occasional ten minute break on Scratch. Rather than actually doing anything useful with the program, I tend to mess around. I'll come back soon, but I want to get this semester's AP Computer Science BS out of the way by next week.
I despise Java...  sad


*sarcasm*

Offline

 

Board footer