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

#601 2010-04-09 16:10:05

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Panther development thread

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:

Code:

color: aColor asString
^ aColor asString

http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#602 2010-04-09 16:30:08

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

But I'm American! I like color! Not colour!

How about 2 modes: English (American) and English (European)


http://i46.tinypic.com/dw7zft.png

Offline

 

#603 2010-04-09 16:46:26

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Panther development thread

Here's a good block that returns the position of a character in a string:
Block specs:

Code:

('index of %s starting at %n in %s'    r    indexOf:startingAt:in: 'o' 6 'hello world')

Instance:

Code:

indexOf: aChar startingAt: aNumber in: aString
    ^ (aString asString indexOf: (aChar at: 1) startingAt: aNumber)

http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#604 2010-04-09 16:59:10

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Panther development thread

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!  smile

Last edited by TheGameMaster1231 (2010-04-09 16:59:43)

Offline

 

#605 2010-04-09 17:21:38

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

SeptimusHeap wrote:

But I'm American! I like color! Not colour!

How about 2 modes: English (American) and English (European)

I don't think that's really necessary.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#606 2010-04-09 17:23:39

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

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!  smile

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.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#607 2010-04-09 17:25:11

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

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!


http://i46.tinypic.com/dw7zft.png

Offline

 

#608 2010-04-09 17:26:18

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

MathWizz wrote:

Make an instance like this:

Code:

color: aColor asString
^ aColor asString

does not work. put it under sensing ops, said asString is an unknown variable. should I declare temp?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#609 2010-04-09 17:28:54

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

@sep: or I could not say that word and assume that you'll bite and post it anyway  wink

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  big_smile

Last edited by sparks (2010-04-09 17:31:44)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#610 2010-04-09 17:43:12

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

SHWEET!

I gotz a (pen color) block and a (pen shade) and soon to be a <pen down?>


http://i46.tinypic.com/dw7zft.png

Offline

 

#611 2010-04-09 17:47:51

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

hey no fair! post the code! I NEED TO LEARN!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#612 2010-04-09 17:49:31

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

No BWAHAHAHAH! Not yet...


http://i46.tinypic.com/dw7zft.png

Offline

 

#613 2010-04-09 17:52:59

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

well did you use MathWizz's

color: aColor asString
^ aColor asString

code? why didn't it work?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#614 2010-04-09 17:54:27

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

No. I made my own code. It tells the pen color value as a number.


http://i46.tinypic.com/dw7zft.png

Offline

 

#615 2010-04-09 17:56:13

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

¬_¬ feel like sharing?

ok, I crack "code"! there, magic word sep  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#616 2010-04-09 17:57:33

GirWaffles64
Scratcher
Registered: 2009-08-09
Posts: 1000+

Re: Panther development thread

Oh boy, I love the dialog block!


hey kiddoes i'm back

Offline

 

#617 2010-04-09 18:00:44

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

Wait, what's MathWizz's code?


http://i46.tinypic.com/dw7zft.png

Offline

 

#618 2010-04-09 18:01:40

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

color: aColor asString
^ aColor asString


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#619 2010-04-09 18:07:44

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

This might work. I had to edit it:

colorcolor: t1
|t2|
t2 < t1 asString
^t2

On to test it...


http://i46.tinypic.com/dw7zft.png

Offline

 

#620 2010-04-09 18:08:53

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

It no workie!


http://i46.tinypic.com/dw7zft.png

Offline

 

#621 2010-04-09 18:11:55

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

What do I put for color, aColor, and asString?


http://i46.tinypic.com/dw7zft.png

Offline

 

#622 2010-04-09 18:14:32

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

I keep getting a nothing more expected -> at the color: aColor asString.


http://i46.tinypic.com/dw7zft.png

Offline

 

#623 2010-04-09 18:15:40

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

noooooo idea


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#624 2010-04-09 18:16:54

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

sad  soooo tired, 11:15 PM here, off to sleep, if you fix it. POST IT! I'll look at it in the morning. g'night all.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#625 2010-04-09 18:18:31

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

Wait... I'm on a %c block...


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer