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

#1251 2010-04-13 16:58:03

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

nXIII, did you add the 'round _ to nearest _' and 'estimate _ to _ths place' blocks that me and Sperry made?

And, can you post the 'while true' function again?

I don't mean to be harsh, but as Sparks said, we really want to avoid "Block Clogging", or making so many blocks that the important ones are buried in a pile of three-block-equivalent ones. Both of those blocks are relatively simple to accomplish with a few other blocks.

On a happier not, I have just finished fixing the backwards-compatible variable blocks (remember how they load with an empty variable selection? Not anymore  big_smile )

Now, I am making it so the old variable reporters are turned into new ones.

I REALLY don't think you want a while true function, it would crash Squeak. If you mean whileTrue:, the message, the format is [conditionInBrackets] whileTrue: [codeInBrackets].

Last edited by nXIII (2010-04-13 16:59:06)


nXIII

Offline

 

#1252 2010-04-13 17:00:17

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

Re: Panther development thread

nXIII wrote:

SeptimusHeap wrote:

nXIII, did you add the 'round _ to nearest _' and 'estimate _ to _ths place' blocks that me and Sperry made?

And, can you post the 'while true' function again?

I don't mean to be harsh, but as Sparks said, we really want to avoid "Block Clogging", or making so many blocks that the important ones are buried in a pile of three-block-equivalent ones. Both of those blocks are relatively simple to accomplish with a few other blocks.

On a happier not, I have just finished fixing the backwards-compatible variable blocks (remember how they load with an empty variable selection? Not anymore  big_smile )

Now, I am making it so the old variable reporters are turned into new ones.

I REALLY don't think you want a while true function, it would crash Squeak. If you mean whileTrue:, the message, the format is [conditionInBrackets] whileTrue: [codeInBrackets].

Yes, the second one  smile


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

Offline

 

#1253 2010-04-13 17:02:49

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

Re: Panther development thread

nXIII wrote:

On a happier not, I have just finished fixing the backwards-compatible variable blocks (remember how they load with an empty variable selection? Not anymore  big_smile )

Now, I am making it so the old variable reporters are turned into new ones.

w00t! How do you do it though?


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

Offline

 

#1254 2010-04-13 17:07:57

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

Re: Panther development thread

update for panther project - feel free to suggest:
name: Panther online
current features:
can check for connection to ref file and tell if it is outdated and needs upgrading (a prompt is given on both occasions in a dialogue box.
pretty good graphics that I mostly nabbed from the Scratch skin folder  tongue


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

Offline

 

#1255 2010-04-13 17:10:36

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

MathWizz wrote:

nXIII wrote:

On a happier not, I have just finished fixing the backwards-compatible variable blocks (remember how they load with an empty variable selection? Not anymore  big_smile )

Now, I am making it so the old variable reporters are turned into new ones.

w00t! How do you do it though?

It turned out that the problem was an outdated arg (the variable one). I changed the variable arg to a custom arg subclass to get the 'other...' string functionality and other functionality. I simply needed to change what arg it looked for when setting the name, then change the message it used to set the argument value!


nXIII

Offline

 

#1256 2010-04-13 17:12:25

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

Re: Panther development thread

neat, nXIII, is that uploaded?


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

Offline

 

#1257 2010-04-13 17:14:58

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

sparks wrote:

neat, nXIII, is that uploaded?

I shall do it right now


....


! The upload speed gets slower the farther it gets...

Last edited by nXIII (2010-04-13 17:19:27)


nXIII

Offline

 

#1258 2010-04-13 17:17:37

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

Re: Panther development thread

What's wrong with my edit adding the '! of _' block?

Code:

computeFunction: functionName of: aNumber
    "Return the result of computing the given mathematical function on the given number."
    |t1 t2|

    t1 _ aNumber. t2 _ aNumber. [t1 >= 0] whileTrue: [t2 _ t2 * t1. t1 _ t1 - 1.].

    '!' = functionName ifTrue: [^ t2].
    'abs' = functionName ifTrue: [^ aNumber abs].
    'sqrt' = functionName ifTrue: [^ aNumber sqrt].
    'sin' = functionName ifTrue: [^ aNumber degreesToRadians sin].
    'cos' = functionName ifTrue: [^ aNumber degreesToRadians cos].
    'tan' = functionName ifTrue: [^ aNumber degreesToRadians tan].
    'asin' = functionName ifTrue: [^ (aNumber within: -1.0 and: 1.0) arcSin radiansToDegrees].
    'acos' = functionName ifTrue: [^ (aNumber within: -1.0 and: 1.0) arcCos radiansToDegrees].
    'atan' = functionName ifTrue: [^ aNumber arcTan radiansToDegrees].
    
    'ln' = functionName ifTrue: [^ aNumber ln].
    'log' = functionName ifTrue: [^ aNumber log].
    'e ^' = functionName ifTrue: [^ aNumber exp].
    '10 ^' = functionName ifTrue: [^ 10.0 raisedTo: aNumber].

    ^ 0

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

Offline

 

#1259 2010-04-13 17:33:52

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

LAWLZ Panther was hosting a mesh when I saved the image!

BTW the factorial is built in, just (anInteger factorial).

Last edited by nXIII (2010-04-13 17:52:58)


nXIII

Offline

 

#1260 2010-04-13 17:59:23

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

Re: Panther development thread

nXIII, I'm pretty certain the change colour effect has stopped working, might want to look into that


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

Offline

 

#1261 2010-04-13 18:05:47

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

Re: Panther development thread

Is the new panther in the same file as before?

I reccomend adding ! to the list of functions.

Last edited by SeptimusHeap (2010-04-13 18:07:02)


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

Offline

 

#1262 2010-04-13 18:06:38

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

sparks wrote:

nXIII, I'm pretty certain the change colour effect has stopped working, might want to look into that

You need the dll's


SeptimusHeap wrote:

Is the new panther in the same file as before?

I only updated the image in the folder Panther 1.1 (incomplete)

Last edited by nXIII (2010-04-13 18:07:11)


nXIII

Offline

 

#1263 2010-04-13 18:08:26

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

Re: Panther development thread

nXIII wrote:

sparks wrote:

nXIII, I'm pretty certain the change colour effect has stopped working, might want to look into that

You need the dll's


SeptimusHeap wrote:

Is the new panther in the same file as before?

I only updated the image in the folder Panther 1.1 (incomplete)

I use the zip...


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

Offline

 

#1264 2010-04-13 18:14:31

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

Re: Panther development thread

thanks, problem solved


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

Offline

 

#1265 2010-04-13 18:17:20

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

Re: Panther development thread

MathWizz wrote:

I suggested this before but I don't think you noticed:
blockSpecs:

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

 

#1266 2010-04-13 18:18:33

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

Re: Panther development thread

I wanna zip!


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

Offline

 

#1267 2010-04-13 18:18:40

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Panther development thread

Can I join Panther?

Offline

 

#1268 2010-04-13 18:20:10

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

Re: Panther development thread

somelia wrote:

Can I join Panther?

Err... Sorry. No.


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

Offline

 

#1269 2010-04-13 18:22:47

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

I wanna zip!

Just shove the image in your old one!

MathWizz wrote:

MathWizz wrote:

I suggested this before but I don't think you noticed:
blockSpecs:

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)

K, I'll add it (YAY, a useful block suggestion!)

Last edited by nXIII (2010-04-13 18:23:26)


nXIII

Offline

 

#1270 2010-04-13 18:25:02

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

Re: Panther development thread

nXIII wrote:

SeptimusHeap wrote:

I wanna zip!

Just shove the image in your old one!

MathWizz wrote:

MathWizz wrote:

I suggested this before but I don't think you noticed:
blockSpecs:

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)

K, I'll add it (YAY, a useful block suggestion!)

And mine aren't?

How about '!'?


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

Offline

 

#1271 2010-04-13 18:28:30

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

somelia wrote:

Can I join Panther?

Err... Sorry. No.

Okay.  sad

But be excpecting a RIVAL for the rest of Panther's life!

*pulls Itch URL out of pocket*

Offline

 

#1272 2010-04-13 18:29:49

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

Re: Panther development thread

somelia wrote:

SeptimusHeap wrote:

somelia wrote:

Can I join Panther?

Err... Sorry. No.

Okay.  sad

But be excpecting a RIVAL for the rest of Panther's life!

*pulls Itch URL out of pocket*

Well... We have to ask nXIII. You can be...

Public relations/advertising?


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

Offline

 

#1273 2010-04-13 18:44:37

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

somelia wrote:

SeptimusHeap wrote:


Err... Sorry. No.

Okay.  sad

But be excpecting a RIVAL for the rest of Panther's life!

*pulls Itch URL out of pocket*

Well... We have to ask nXIII. You can be...

Public relations/advertising?

Nice!

So maybe Itch and Panther could...hmmm...overlap?

I don't know the word.

It's like having two grocery stores next to each other who aren't exactly in competition.

Offline

 

#1274 2010-04-13 18:48:06

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

Re: Panther development thread

somelia wrote:

SeptimusHeap wrote:

somelia wrote:


Okay.  sad

But be excpecting a RIVAL for the rest of Panther's life!

*pulls Itch URL out of pocket*

Well... We have to ask nXIII. You can be...

Public relations/advertising?

Nice!

So maybe Itch and Panther could...hmmm...overlap?

I don't know the word.

It's like having two grocery stores next to each other who aren't exactly in competition.

Merger?

Itch: Scratch, with cooler stuff!
Panther: Scratch for the hard-cores.
Wait: We still need to get the rest of the team's OK.


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

Offline

 

#1275 2010-04-13 19:06:42

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Panther development thread

THat'll work - if the team agrees. Else, you guys'll have a rival. >:D

Last edited by somelia (2010-04-13 19:06:47)

Offline

 

Board footer