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

#1 2008-05-16 13:24:17

SonicPops
Scratcher
Registered: 2007-06-10
Posts: 100+

'Between' block

While my dad was making his 'Bouncy Ball' project, he was looking far and wide through the blocks, when I came in. My dad asked, 'Where's the "between" block?' and told him - there wasn't one.

I'd like this too, perhaps if

Code:

 
If <sprite1's Yposition> between <-220 and 220>
say: Hooray

Hope you take this into further thought  smile
regards
SonicPops

Last edited by SonicPops (2008-05-16 13:25:01)


smile  Go Crank. Inc!  smile
Not much to say  wink

Offline

 

#2 2008-05-16 13:39:33

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: 'Between' block

You can code this yourselves:

Code:

if (sprite1's yposition) > -220 AND (sprite1's yposition)<220

http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#3 2008-05-16 13:49:55

SonicPops
Scratcher
Registered: 2007-06-10
Posts: 100+

Re: 'Between' block

Oh. Cheers  smile


smile  Go Crank. Inc!  smile
Not much to say  wink

Offline

 

#4 2008-05-20 17:48:55

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: 'Between' block

lol


All your base are belong to us

Offline

 

#5 2008-05-20 18:08:39

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

Re: 'Between' block

does your dad have a username?


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

Offline

 

#6 2008-05-20 18:13:56

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: 'Between' block

I agree, SonicPops, it would make it easier. I heard this before in the forums, but as a rounded number block (like "pick random"). The problem is, what would
[say (12 through 45)] do?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer