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

#1 2008-09-07 13:05:21

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

Tutorial on Lists

I've put together a short tutorial on Lists for your viewing pleasure. 

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

This project also implements a small language of it's own (using lists) to control the dialog and sprite movement.  The syntax is described in the Project Notes.  Enjoy and please tell me if there are errors or suggestions for improvement.


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

Offline

 

#2 2008-09-07 13:11:29

Lanie
Scratcher
Registered: 2008-02-03
Posts: 1000+

Re: Tutorial on Lists

Thanks i need that!

Offline

 

#3 2008-09-07 13:14:55

logan996
Scratcher
Registered: 2008-01-19
Posts: 11

Re: Tutorial on Lists

Lanie wrote:

Thanks i need that!

Woah laine your a fourm modderator!?! how do you get to do that again?


Give a man a fire and he'll be warm for a day. Light a man on fire and he'll be warm for the rest of his life.                           
*"thanks a fire."   *AHHHH!!!! THE PAIN!!!! HOT HOT HOT!!! ahhh ahh ah..."*  smile

Offline

 

#4 2008-09-07 13:20:18

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

Re: Tutorial on Lists

logan996 wrote:

Lanie wrote:

Thanks i need that!

Woah laine your a fourm modderator!?! how do you get to do that again?

She became a mod several months ago.

Paddle2See: Excellent project! How did you do the notepad thing?

Offline

 

#5 2008-09-07 13:34:35

Hitokiri
Scratcher
Registered: 2008-08-16
Posts: 32

Re: Tutorial on Lists

Awesome:D


Remember remember, the fifth of November, gunpowder, treason,
and plot.

Offline

 

#6 2008-09-07 13:44:50

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

Re: Tutorial on Lists

coolstuff wrote:

Paddle2See: Excellent project! How did you do the notepad thing?

Well, to get data from Notepad into a list, I save the text file to my desktop (so I can find it easily).  Then, I right-click on the list watcher, in the grey border somewhere and pick the Import option. 

If you're asking how I wrote the language parsing stuff...I used the cool new feature where you can Broadcast a variable (or a list item).  I broadcast the first item in the list (assuming it is a command) and then read and process the arguments for that command.  I move the pointer to the next command and continue like that until done.  It has very little error checking...but it actually is quite robust because you can broadcast anything you like as a message without error.


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

Offline

 

Board footer