sparks wrote:
well I kinda took you seriously and was trying to make it a real block. here's what I have so far:
Code:
('%c as a string' #r #-)it shows up, has a colour selector and a watcher, but reports "error!" because I don't know what instance goes in place of the "-" at the end #r #???
Make an instance like this:
color: aColor asString ^ aColor asString
Offline
SeptimusHeap wrote:
But I'm American! I like color! Not colour!
How about 2 modes: English (American) and English (European)
Offline
Here's a good block that returns the position of a character in a string:
Block specs:
('index of %s starting at %n in %s' r indexOf:startingAt:in: 'o' 6 'hello world')
Instance:
indexOf: aChar startingAt: aNumber in: aString ^ (aString asString indexOf: (aChar at: 1) startingAt: aNumber)
Offline
Hello sparks! I Would Like To Give You Code For Panther. If You Don't Already Have It, This Code Is For The <hidden?> Block. Go To Scratch-Objects Then ScratchSpriteMorph Then BlockSpecks Then BlockSpecks Again. Now Under Looks, Type:
('hidden?' #b #isHidden)
Then Press Alt+S To Save! Then You Have The <hidden?> Block!
Last edited by TheGameMaster1231 (2010-04-09 16:59:43)
Offline
TheGameMaster1231 wrote:
Hello sparks! I Would Like To Give You Code For Panther. If You Don't Already Have It, This Code Is For The <hidden?> Block. Go To Scratch-Objects Then ScratchSpriteMorph Then BlockSpecks Then BlockSpecks Again. Now Under Looks, Type:
Code:
('hidden?' #b #isHidden)Then Press Alt+S To Save! Then You Have The <hidden?> Block!
Thank you very much, I'm flattered that you addressed that to me, though nXIII's got the copy of Panther. Furthermore, I'm sorry to inform you that we already have that block in Panther. I thank you for supplying the code all the same, we appreciate your time.
Offline
I don't get it. Colour should be said col-ew-re. Color is said Col-or.
My little evil mind knows a few things of source code, and I have 2 new block for you guys!
Make draggable and Make undraggable. Only problem: It doesn't change the lock icon.
If you want the code say: Code!
Offline
@sep: or I could not say that word and assume that you'll bite and post it anyway
England was around before America so colour would be the original spelling. I don't really care, my Dad tells me off if I spell colour without the "U", call pavements sidewalks, call shops stores and suchlike. I watch too much american TV. CSI, Family Guy, all the good stuff's american.
And if we're gonna get picky, I'm not even English, I'm Swiss and should therefore be demading that "color" should be spelt "farbe" and have done with it
Last edited by sparks (2010-04-09 17:31:44)
Offline
SHWEET!
I gotz a (pen color) block and a (pen shade) and soon to be a <pen down?>
Offline
Oh boy, I love the dialog block!
Offline
This might work. I had to edit it:
colorcolor: t1
|t2|
t2 < t1 asString
^t2
On to test it...
Offline
I keep getting a nothing more expected -> at the color: aColor asString.
Offline