WHOA I just downloaded Panther IT IS AWSOME!
BTW I can't believe HOW LONG this forum thread is!
Last edited by rubiks_cube_guy238 (2010-05-30 08:05:40)
Offline
bharvey wrote:
climber59 wrote:
They are booleans in Panther that just say true or false and I can't think of a use for them.
Think about a block that slightly varies its behavior to one of two possibilities. For example:
[ <a> = <b> WITH CASE SENSITIVITY <t/f> ]
If the third input is <true> then "a" and "A" are unequal; if the third input is <false> then "a" and "A" are equal.
I don't totally understand that but why have blocks for it if you can just do <0=0> and <0=1>?
Offline
climber59 wrote:
I don't totally understand that but why have blocks for it if you can just do <0=0> and <0=1>?
It's true that you can get around the lack of <true> and <false> but languages ought to give you a direct way to generate the constants of the language. It's kind of as if you had to say <char 65> every time you wanted a letter "A"!
Scratch's handling of Boolean values has always been a little kludgy. In some contexts, it uses the text strings "true" and "false"; in other contexts it uses the numbers 1 and 0 instead. The Boolean blocks kind of promote Booleans to being taken seriously as a data type. We included <true> and <false> blocks in BYOB, too, even though we were bending over backward not to introduce a lot of extra blocks.
In a perfect world, when you evaluate something like <1=0> the reported value would be the <false> block, not "false" or 0. Alas, too many Scratch projects depend on the old behavior for us to dare to fix it!
Last edited by bharvey (2010-05-30 12:44:58)
Offline
To the developers of panther: I can make the online player. I have some knowledge of java, and my dad programs it for a living. Want My help?
Offline
Also, You guys need a hyperlink block.
<go to [http://pantherprogramming.weebly.com/]>
Offline
ethanco wrote:
To the developers of panther: I can make the online player. I have some knowledge of java, and my dad programs it for a living. Want My help?
No, we have MathWizz already, but thanks!
Unless you can have CYOB work...
Offline
SeptimusHeap wrote:
ethanco wrote:
To the developers of panther: I can make the online player. I have some knowledge of java, and my dad programs it for a living. Want My help?
No, we have MathWizz already, but thanks!
Unless you can have CYOB work...
CYOB is written in Smalltalk!
Offline
nXIII wrote:
CYOB is written in Smalltalk!
If you google "Smalltalk in Java" you'll find pointers to possible solutions to that problem. Admittedly it'd be a big effort to integrate a Smalltalk-in-Java with the rest of the player.
Offline
Yes, made a project that scans a video feed of you at 10% of the size and then will record where your skin colour is. I can use this to make a game where you touch yellow blobs.
Offline
How would these blocks (for dialogs) look to you guys?
Open dialog [info] with text [text] and buttons in list [list] -shows a dialog with a button for every list item.
(link to [scratch.mit.edu]) - Put this in a dialog, and it's a blue hyperlink, like this:
Show dialog blah with text (link to [blah.com])
Offline
I would like that. And youd you make a <in mesh block?> as you have <hosting mesh?> block. I would love them. Also could you make a |colour of pixels |X Y| to |X| |Y| | And it would mix the colour of all the pixles in that range. I need it (read above).
Also perfect the cloneing as it does not always work.
Offline
Cloning DOES work...
And couldn't you do this:
(Make a variable called pixels, and a color called skin)
set skin to color at pixel ?, ?
set pixels to 1
repeat (number of pixels to scan)
set pixels to mix (skin) (pixels) and 1 color at pixel ? ?
change pixels by 1
Offline
Thats what im doing, but its long. And with cloning. Sometimes they delete themselfs. Before the porject is stopped and without deleting.
Offline
johnnydean1 wrote:
Thats what im doing, but its long. And with cloning. Sometimes they delete themselfs. Before the porject is stopped and without deleting.
When you stop or click green flag, clones are deleted...
Plus, it works fine for me.
Offline
This is awesome! Panther rules.
Offline
SeptimusHeap wrote:
set skin to color at pixel ?, ?
set pixels to 1
repeat (number of pixels to scan)
set pixels to mix (skin) (pixels) and 1 color at pixel ? ?
change pixels by 1
If I'm understanding this program correctly (I'm not sure I totally understand MIX), this will give pixels near the end higher weight in the mixture than pixels near the beginning. You really want MIX to be variadic and/or take a list of colors as input.
Offline
Thats true, never thought about that. I have made a scanner that does it, I sent it for upload ages ago
\ /
00
__
(Angry face)
Offline
johnnydean1 wrote:
Thats true, never thought about that. I have made a scanner that does it, I sent it for upload ages ago
\ /
00
__
(Angry face)
Well its not likely to go up for a while now. Sparks is the one who gets all the emails.
Offline
Shal I post it somewhere else and have you upload it?
Offline
johnnydean1 wrote:
Shal I post it somewhere else and have you upload it?
I don't know how to.
Offline
Cant you login to the website and add a new project?
Offline
IDEA: Object grouping. So you could say if touching group1
and group1 contains (
sprite 1
sprite 2
)
so it saves code.
Offline
johnnydean1 wrote:
IDEA: Object grouping. So you could say if touching group1
and group1 contains (
sprite 1
sprite 2
)
so it saves code.
Yes, this would be useful, but it's just one of a bazillion useful combinations: if touching one of these colors, or if one of these keys is pressed, or if the sprite's position is within this rectangle...
That's why it should be easy for users to define things like this themselves. Without learning Smalltalk.
</advt>
Offline
So you agree? and who else does?
Offline