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

#1 2010-05-04 15:46:46

emoboi5025
Scratcher
Registered: 2010-05-04
Posts: 1

New block

Hey guys. I was thinking that there should be a "repeat until i receive...."  or somthing in sencing that was like this <touching[  exept said  "i receive" because it would be more convienient for a lot of things. I've been thinking about this since ver. 1.2.1. what are your opinians and can it be done? thanx  smile

Offline

 

#2 2010-05-04 16:19:25

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Re: New block

Variables can do this for you.

You could have a "repeat until <Variable = stop>"
Put what you want to happen in that,
It will do that until "Variable" is set to 'stop'.

then have another script that does some things then has: "Set Variable to 'stop'."
when that happens that part in the first script will stop.

Does this make sense?
Here's more about variables: http://scratch.mit.edu/forums/viewtopic.php?id=1346 you can read.

Or if you want it to do that until it's touching something. replace the <Variable = stop> with <touching "whatever sprite" ?>


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

#3 2010-05-22 08:52:59

steve1234
Scratcher
Registered: 2009-09-19
Posts: 22

Re: New block

[blocks] <repeat until> <( <{ stop }> <=> yes )>               <when I receive[something}>
                                                                              <set{ stop }to( yes)>

Try this:


http://i158.photobucket.com/albums/t81/pjcountry41/bully%20backgrounds/bluefire.jpg

Offline

 

Board footer