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

#1 2008-01-06 15:03:41

dogbloos
Scratcher
Registered: 2007-05-10
Posts: 35

new script blocks

you know how costumes have numbers? well i think that scripts should have numbers too. I often have a situation where i set it to play a certain sound when the green flag is clicked and then stop a different script. There should be a block that says: stop script # (blank)
Another idea of mine is that there should be an "if" block that says:
If script # (blank) is active.

Also, you know how there is a next costume block?

<next costume>
well i think there should also be a <last costume> block

Last edited by dogbloos (2008-01-06 15:04:08)


I like snakes!!!!! i also like programming, cp, and science

Offline

 

#2 2008-01-06 19:08:33

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: new script blocks

Do you mean "previous costume" or "switch to costume <number of costumes>"?

The first is easily done:
   switch to costume <costume #> -1

The second is *not* easily done, as there is no sensor for number of costumes.
It might be a handy thing to have sometimes.

Offline

 

#3 2008-01-06 19:50:35

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: new script blocks

dogbloos wrote:

you know how costumes have numbers? well i think that scripts should have numbers too. I often have a situation where i set it to play a certain sound when the green flag is clicked and then stop a different script. There should be a block that says: stop script # (blank)

there already is the <stop script> block


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#4 2008-01-06 19:56:03

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: new script blocks

dogbloos wrote:

If script # (blank) is active.

http://i243.photobucket.com/albums/ff67/hprules_photos/script.jpg


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#5 2008-01-10 15:24:23

beepbeep
Scratcher
Registered: 2007-11-23
Posts: 28

Re: new script blocks

The "forever if" block should be removed.  It can be created by writing

Code:

 forever

if______

Beep away!

smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile

Offline

 

#6 2008-01-12 09:25:42

dogbloos
Scratcher
Registered: 2007-05-10
Posts: 35

Re: new script blocks

funkymonkey wrote:

dogbloos wrote:

you know how costumes have numbers? well i think that scripts should have numbers too. I often have a situation where i set it to play a certain sound when the green flag is clicked and then stop a different script. There should be a block that says: stop script # (blank)

there already is the <stop script> block

yes but the <stop script> block only stops that one script that you put it on. what if i wanted to make a certain action to stop when another thing finishes. if that other thing was something like <wait(pick random 1 to 10)seconds> if this happened i wouldnt be able to tell when it would finish! do you get what im saying?


I like snakes!!!!! i also like programming, cp, and science

Offline

 

#7 2009-07-13 21:18:42

dogbloos
Scratcher
Registered: 2007-05-10
Posts: 35

Re: new script blocks

funkymonkey wrote:

dogbloos wrote:

you know how costumes have numbers? well i think that scripts should have numbers too. I often have a situation where i set it to play a certain sound when the green flag is clicked and then stop a different script. There should be a block that says: stop script # (blank)

there already is the <stop script> block

ya, i know that. *rolls eyes*. im talking about one script activating another script to stop. its hard to describe.

Last edited by dogbloos (2009-07-13 21:20:20)


I like snakes!!!!! i also like programming, cp, and science

Offline

 

#8 2009-07-14 06:55:41

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: new script blocks

beepbeep wrote:

The "forever if" block should be removed.  It can be created by writing

Code:

 forever

if______

A lot of blocks can be created already. They just make life easier.
http://scratch.mit.edu/forums/viewtopic.php?id=13235

Offline

 

Board footer