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

#1 2009-03-09 10:59:33

bollu
Scratcher
Registered: 2009-03-09
Posts: 1

Advanced Conditions, Actions and Functions

I advise you to read this post if you know programming or you might not understand anything.

So , I think that it would be lovely to have FOR loops. Functions would also be useful to do a repetitive thing easily and also allow us to create systems for effects and stuff. So , what do you say? these could be kept in an 'Advanced' tab or something like that. It'll be cool to have these improvements in scratch. This is all.

bye all !

Offline

 

#2 2009-03-09 11:39:11

mrweston
Scratcher
Registered: 2007-12-13
Posts: 100+

Re: Advanced Conditions, Actions and Functions

Functions/procedures would indeed be pretty handy -- they've been requested quite a few times, too. Not sure if they'll ever be incorporated.

"For" loops are easy enough to create with existing blocks, though... the [ Repeat (10) ] block is sort of a premade one, or you can build your own:

Set $i to (1);
Repeat until < $i = 10 > {
    do stuff;
    Set $i to ( $i + 1 );
}

Offline

 

#3 2009-03-09 13:04:57

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

Re: Advanced Conditions, Actions and Functions

for a prototype of Scratch with procedures and functions check out BYOB (build your own blocks)


Jens Mönig

Offline

 

Board footer