johnnydean1 wrote:
nXIII wrote:
rdococ wrote:
It covers up nothing. 4 or 5 out of 6 errors.um... what are you on about?
You can subtract stuff from zero.
0 - 10 = -10. Try it on a calculator.just use
( 0 - abs of (number) )
no, just (0 - number)
Offline
nXIII wrote:
rdococ wrote:
nXIII wrote:
soupoftomato wrote:
Block 3: inverse of ()
This block gives the inverse (opposite) of a number.
1. Click "Make a block," and select "Operators," as the block group. For the type of block, you need to select the round, "reporter" block. In the naming bar, type, "inverse of." Press OK.
2. You should see the hat block with a block that says, "inverse of," in it. Remember how we added variables where the plus signs were last time? Do that after "of." When it asks for it's name, type, "number."
3. Because there are two types of inverses, positive, and negative. We need the script to check if the number is positive or negative. Put on if statement that says, "if number(the variable we made)> 0." And another if statement that says, "if number < 0."
4. Make a new variable called number1. In the first if, put "set number1 to (0-number). In the second if, put, "set number to (-1*number).
5. Now you're done and your scripts should look like this:
http://img213.imageshack.us/img213/2454/inverseof.gif
6. Press OKExactly what are you doing here?!
subtracting from zero and multiplying by negative one always produces the same result! I mean, really? I quote you saying, "two types of inverses, positive and negative." No there aren't. What the heck are you talking about. Are you trying to say, "the inverse of a positive number is negative, and the inverse of a negative number is positive"? Because its sign doesn't matter! Let's try a few examples, shall we?#1: inverse of 3
0 - 3 = -3 Correct. However, error, 0 is not positive or negative, impossible to do. 0 is a nertaul.
3 * -1 = -3 Correct. However, error, Impossible to do in this block.One comment from rdococ: Too much errors I have caught.
I think that covers everything, doesn't it? See what I mean?It covers up nothing. 5 out of 6 errors.
um... what are you on about?
You can subtract stuff from zero.
0 - 10 = -10. Try it on a calculator.
0 - 10 is -10, but that does nothing, so why are you talking about?!?! And this is all on the inverse block. I also added changes of the quote I posted in this post. Clear enough?
Offline
rdococ wrote:
nXIII wrote:
rdococ wrote:
It covers up nothing. 5 out of 6 errors.um... what are you on about?
You can subtract stuff from zero.
0 - 10 = -10. Try it on a calculator.0 - 10 is -10, but that does nothing, so why are you talking about?!?! And this is all on the inverse block. I also added changes of the quote I posted in this post. Clear enough?
Did I miss something? What is this whole argument about?
Offline
rdococ wrote:
nXIII wrote:
rdococ wrote:
It covers up nothing. 5 out of 6 errors.
um... what are you on about?
You can subtract stuff from zero.
0 - 10 = -10. Try it on a calculator.0 - 10 is -10, but that does nothing, so why are you talking about?!?! And this is all on the inverse block. I also added changes of the quote I posted in this post. Clear enough?
What are you on about? Really.
Okay, then. Here, all functional-y:
let f(x) = 0 - x
f is now the inverse function. Whatever I plug in (i.e. f(8) = -8) will be inverted.
The only reason I use "0 - x" instead of "-x" is because I'm trying to get the point across that "-x" means "0 - x"
Last edited by nXIII (2010-08-30 10:38:01)
Offline
nXIII wrote:
rdococ wrote:
nXIII wrote:
um... what are you on about?
You can subtract stuff from zero.
0 - 10 = -10. Try it on a calculator.0 - 10 is -10, but that does nothing, so why are you talking about?!?! And this is all on the inverse block. I also added changes of the quote I posted in this post. Clear enough?
What are you on about? Really.
Okay, then. Here, all functional-y:
let f(x) = 0 - x
f is now the inverse function. Whatever I plug in (i.e. f(8) = -8) will be inverted.
The only reason I use "0 - x" instead of "-x" is because I'm trying to get the point across that "-x" means "0 - x"
This argument seems completely pointless.
Offline
ScratchReallyROCKS wrote:
nXIII wrote:
rdococ wrote:
0 - 10 is -10, but that does nothing, so why are you talking about?!?! And this is all on the inverse block. I also added changes of the quote I posted in this post. Clear enough?What are you on about? Really.
Okay, then. Here, all functional-y:
let f(x) = 0 - x
f is now the inverse function. Whatever I plug in (i.e. f(8) = -8) will be inverted.
The only reason I use "0 - x" instead of "-x" is because I'm trying to get the point across that "-x" means "0 - x"This argument seems completely pointless.
I know. I mean, I'm trying to convince him/her that you can in fact subtract things from zero!
Offline
nXIII wrote:
ScratchReallyROCKS wrote:
nXIII wrote:
What are you on about? Really.
Okay, then. Here, all functional-y:
let f(x) = 0 - x
f is now the inverse function. Whatever I plug in (i.e. f(8) = -8) will be inverted.
The only reason I use "0 - x" instead of "-x" is because I'm trying to get the point across that "-x" means "0 - x"This argument seems completely pointless.
I know. I mean, I'm trying to convince him/her that you can in fact subtract things from zero!
Shouldn't they already know that?
Offline
Download the animate block! http://rapidshare.com/files/439696305/AnimateBlock.ypr that was used as an example.
Offline
Ummm...that didn't quite help.I just wish there was a block like this:[blocks]<when[ ]clicked>[/blocks] or something!
Offline
I'm downloading 3.0.8 right now. taking a lonnnnnnng time
Offline
Make a block? Where's that in variables?
Offline
ImagineIt wrote:
Make a block? Where's that in variables?
Its at the bottom.
Offline
Well I don't see it...
Offline
ImagineIt wrote:
Well I don't see it...
Are you trying to find it in Scratch? You need BYOB.
Offline
Oh thanks! How do I get BYOB?
Offline
Wait now how do I use BYOB?
Offline
ImagineIt wrote:
Oh thanks! How do I get BYOB?
ImagineIt wrote:
Wait now how do I use BYOB?
BYOB can be downloaded here.
The interface is just like scratch. In the variables tab you should see 'make a block'. (or you can right click.) Follow the steps soupoftomato has to make some basic blocks.
Good luck!
Offline
gamer_6 wrote:
is there a way to make a new "key () pressed?" block with more keys like 'enter' and 'shift' and 'backspace', etc? that would be awesome...
BYOB can only use Scratch blocks, so you can't add extra features without going into the source code (which is hard to do in BYOB without that annoying 'elements' thing)
Offline
gamer_6 wrote:
is there a way to make a new "key () pressed?" block with more keys like 'enter' and 'shift' and 'backspace', etc? that would be awesome...
Although what floppy_gunk said was true, it is possible to make a <no/any key pressed> block and a (key pressed) block. (Here's a link to one)
Offline
is there any way to edit a block after you have made it??
Offline