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 )
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)
Offline
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)
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
Offline
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
)
Now, I am making it so the old variable reporters are turned into new ones.
w00t! How do you do it though?
Offline
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
Offline
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
)
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!
Offline
What's wrong with my edit adding the '! of _' block?
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
Offline
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)
Offline
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)
Offline
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...
Offline
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)
Offline
Offline
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)
Offline
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 '!'?
Offline
SeptimusHeap wrote:
somelia wrote:
Can I join Panther?
Err... Sorry. No.
Okay.
But be excpecting a RIVAL for the rest of Panther's life!
*pulls Itch URL out of pocket*
Offline
somelia wrote:
SeptimusHeap wrote:
somelia wrote:
Can I join Panther?
Err... Sorry. No.
Okay.
![]()
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?
Offline
SeptimusHeap wrote:
somelia wrote:
SeptimusHeap wrote:
Err... Sorry. No.Okay.
![]()
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
somelia wrote:
SeptimusHeap wrote:
somelia wrote:
Okay.![]()
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.
Offline
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