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

#1 2011-10-21 21:38:08

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Cool BYOB Operators Blocks!

I just made these blocks in BYOB. They are:
<(text) contains (text)>
(letter (number) to (number) of (text))

http://sites.google.com/site/zippynkscratchsite/home/image-cabinet/funnybyobscriptaboutifyoulikethem1.gif

Download As A BYOB Sprite

It's slow, and runs best in turbo mode.

Note: The <(text) contains (text)> block requires the (letter (number) to (number) of (text)) block. That's why I didn't have them as separate sprites.

P.S. Does this go in requests or another forum topic besides this one? I've been having some confusion about placement of forum topics lately.


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#2 2011-10-22 11:19:19

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Cool BYOB Operators Blocks!

Update: The contains block doesn't work as a block, but if the code is modified a little it can be used to check if something contains something else. It just has to be a script, not a block.


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#3 2011-10-22 11:28:27

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Cool BYOB Operators Blocks!

Awesome!

You could submit these to the Local Block Library.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2011-10-22 11:49:32

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Cool BYOB Operators Blocks!

Letter () to () of [] can be faster with recursion. Try

Code:

Letter (a) to (b) of [s]
if (a) = (b)
report (letter (a) of [s])
else
report (join[letter (a) of [s]][letters (a+1) to (b) of [s]])

Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5 2011-10-24 20:13:32

thisisntme
Scratcher
Registered: 2011-04-15
Posts: 63

Re: Cool BYOB Operators Blocks!

<move( <{ <distance to[ computer }> )steps>
<say[ i like this ]for( 10000000000000 )secs>
<say[ i lovit ]for( a large amount of )secs>


http://i.imgur.com/ngU2P.gif

Offline

 

Board footer