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

#101 2010-08-29 20:06:16

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

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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)


nXIII

Offline

 

#102 2010-08-30 09:47:26

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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 OK

Exactly 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

 

#103 2010-08-30 09:54:08

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#104 2010-08-30 10:36:35

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

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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)


nXIII

Offline

 

#105 2010-08-30 10:48:35

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#106 2010-08-30 11:11:22

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

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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!


nXIII

Offline

 

#107 2010-08-30 12:36:25

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#108 2010-12-28 13:49:36

msdosdude
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Download the animate block! http://rapidshare.com/files/439696305/AnimateBlock.ypr that was used as an example.


http://i39.tinypic.com/2vkxppf.png
Freebie. Not a Scratch OS, a REAL OS you can boot to, by msdosdude.

Offline

 

#109 2011-01-05 18:32:05

FirstSkyler1
Scratcher
Registered: 2010-12-25
Posts: 19

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Ummm...that didn't quite help.I just wish there was a block like this:[blocks]<when[  ]clicked>[/blocks] or something!


http://countdownimages.org/cdwn/2_UbuntuOS_1306358700_0099ff.png

Offline

 

#110 2011-01-11 13:39:54

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

I'm downloading 3.0.8 right now.  taking a lonnnnnnng time

Offline

 

#111 2011-02-04 14:12:11

clark420
New Scratcher
Registered: 2011-02-04
Posts: 1

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

i want to know how to make a scratch

Offline

 

#112 2011-03-02 08:40:01

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Here's an easy one, but not the easiest one to make.
http://i56.tinypic.com/1pe5xu.gif
(Just make sure that the "final" variable is empty, not filled with a space.)


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#113 2011-03-02 15:52:05

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Make a block? Where's that in variables?

Offline

 

#114 2011-03-02 15:56:14

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

ImagineIt wrote:

Make a block? Where's that in variables?

Its at the bottom.

Offline

 

#115 2011-03-02 16:53:52

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Well I don't see it...

Offline

 

#116 2011-03-02 16:57:36

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

ImagineIt wrote:

Well I don't see it...

Are you trying to find it in Scratch? You need BYOB.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#117 2011-03-02 20:44:54

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Oh thanks! How do I get BYOB?

Offline

 

#118 2011-03-02 20:54:49

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Wait now how do I use BYOB?

Offline

 

#119 2011-03-03 13:09:00

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#120 2011-03-29 20:25:19

gamer_6
Scratcher
Registered: 2010-07-20
Posts: 20

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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...

Offline

 

#121 2011-03-30 01:23:42

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#122 2011-03-30 07:59:21

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

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)


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#123 2011-08-20 00:10:18

Mosi
New Scratcher
Registered: 2011-08-06
Posts: 1

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

<if><if><if>

Offline

 

#124 2011-11-01 12:26:46

jcsgoff
Scratcher
Registered: 2011-03-28
Posts: 5

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

is their a way to make something that would be impossible?

Offline

 

#125 2011-11-02 12:45:49

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

is there any way to edit a block after you have made it??


http://i44.tinypic.com/2uj37ds.gif

Offline

 

Board footer