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

#1 2008-01-10 15:30:18

beepbeep
Scratcher
Registered: 2007-11-23
Posts: 28

New Blocks

Add suggestions for new blocks here.  Tell us what the block is, what it will do and why we need it.  Please don't add suggestions for things you can do with the blocks we already have.   Remember, a few powerful blocks can do the work of many, weak, specialized ones.  Also, give suggestions for blocks to be removed.  Please talk about blocks and not some other ideas.


Beep away!

smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile

Offline

 

#2 2008-01-10 15:37:25

beepbeep
Scratcher
Registered: 2007-11-23
Posts: 28

Re: New Blocks

I think it would be a good idea to add some blocks that can record.  This block would be set up like this:

Code:

 record sound for (_) secs

This would be good for many programs that involve music.

Another block would be under sensing. However it would be a number block, like loudness.

Code:

(pitch)

This block would be much easier to implement than a record block and it would be good for some singing games.  The number returned would be based on the same system as "play note (_) for (_) beats."

Last edited by beepbeep (2008-01-10 15:38:21)


Beep away!

smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile

Offline

 

#3 2008-01-10 17:44:06

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: New Blocks

Actually, determining the pitch of an incoming sound is much more difficult than simply recording it.

Offline

 

#4 2008-01-11 08:00:49

penguinpenguin
Scratcher
Registered: 2007-09-17
Posts: 12

Re: New Blocks

I think it would be cool to have a block that goes

point toward x:_ Y:_

This would mean that you wouldn't need a sprite to find the direction to any spot on the screen.

Also a sensing block that is like

direction to x: Y:

Maybe one like

direction to "sprite one"

Offline

 

#5 2008-01-11 10:51:15

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: New Blocks

Actually, just the "direction to blocks" are needed, since we already have a "point in direction" block they could be paired with.  I think that the direction blocks would be handy.

Offline

 

#6 2008-01-11 11:31:52

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: New Blocks

"Direction to" would definitely be handy.  I suppose the same function could be done with trig now, but it seems like a very logical "built in" to have. 

I've done a lot of projects where I end up sending a helper sprite to a point to get the direction and distance.  We have a "Distance to Sprite", how about a "Distance to X, Y"?  Again, this could be calculated, but would be nice to have as a built-in...

-MrEd

Offline

 

#7 2008-01-11 15:33:41

george_w_bush
Scratcher
Registered: 2008-01-11
Posts: 3

Re: New Blocks

Lets add a sensing block that senses whether other sprites are shown or hidden. 

Something like "(sprite1) shown?"


There are two types of people:
Those who hate me...
and those who haven't heard about me, yet.
And I am George Bush!

Offline

 

#8 2008-01-11 16:35:26

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: New Blocks

The "sprite1 shown?" does not need to be a separate sensing block---they can just add "hidden" to the list of variables in the new sensing block that shows variable values.

Offline

 

#9 2008-01-12 05:41:38

abstractist
Scratcher
Registered: 2008-01-12
Posts: 6

Re: New Blocks

I think that it would be good to have a sensing block that figures out what effects are used by other sprites.  it might look like this:

Code:

(color effect) of (sprite1)

I use graphic effects all of the time, it would really help me.

Last edited by abstractist (2008-01-12 05:42:04)

Offline

 

#10 2008-01-12 13:32:36

penguinpenguin
Scratcher
Registered: 2007-09-17
Posts: 12

Re: New Blocks

Even though it isn't a block, I would like to have normal copy and paste function.  This would mean that you could copy something from one project and paste it in another.  Also it would be nice to have shortcuts like control-c etc...

Offline

 

#11 2008-01-12 18:53:30

Post_it_note
Scratcher
Registered: 2008-01-12
Posts: 6

Re: New Blocks

I think that the random number block needs o be able to generate decimals as well as integers.  Please add this function.


When you use a Postit Note, you'll always remember.
Now, please always remember my projects.  Watch'em all, comment, press Loveit and make them your favorite. 
Next time you use a Postit Note, think of me.

Offline

 

#12 2008-01-12 18:57:36

zombiepenguin_
Scratcher
Registered: 2008-01-12
Posts: 1

Re: New Blocks

Could a block be made that changes the x and y of all the PEN on the screen?  Then when you stamp something, you could move that stamp and everything else on the page.

Offline

 

#13 2008-01-12 18:59:47

cutebabyfluffybunny
Scratcher
Registered: 2008-01-12
Posts: 1

Re: New Blocks

How about a block that finds out the date and time of the computer?

Offline

 

#14 2008-01-12 19:26:50

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: New Blocks

The random number block can generate non-integer numbers, just make sure that one of the two limits (min or max) is non-integer.  For example, 0 and 0.9999999 will give you numbers between 0 and (slightly less than) 1.

Offline

 

#15 2008-01-13 13:04:58

Post_it_note
Scratcher
Registered: 2008-01-12
Posts: 6

Re: New Blocks

The in-scratch help needs better definitions for the math functions.  It can be tricky to understand.


When you use a Postit Note, you'll always remember.
Now, please always remember my projects.  Watch'em all, comment, press Loveit and make them your favorite. 
Next time you use a Postit Note, think of me.

Offline

 

#16 2008-01-13 16:28:03

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: New Blocks

Some of the math functions *are* tricky to understand, but the tiny space of the in-scratch help is not enough to explain the trigonometric, logarithm, and exponential functions.  Your best bet is to read about them elsewhere (in a trigonometry class or in Wikipedia).

Offline

 

#17 2008-01-14 17:20:12

abstractist
Scratcher
Registered: 2008-01-12
Posts: 6

Re: New Blocks

Maybe there could be a forum where people ask what something means and other people  tell them the answers.  Then if there was a question, you could ask it.

Offline

 

#18 2008-01-14 19:33:40

beepbeep
Scratcher
Registered: 2007-11-23
Posts: 28

Re: New Blocks

I'm glad that my thread is getting so much attention.  Another idea for a block is one that stretches a sprite.  It would probably be under "Looks."  This could be its design:

Code:

 Stretch x by (_)% 
Stretch y by (_)%

or maybe:

Code:

 Set stretching to x (_)% y(_)%
Change stretching by x (_)% y (_)%
(x stretching)
(y stretching)

The final two blocks are number blocks, which can be shown and hidden, like x position and y position.

Last edited by beepbeep (2008-01-14 19:34:50)


Beep away!

smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile    smile

Offline

 

#19 2008-01-14 19:48:12

Post_it_note
Scratcher
Registered: 2008-01-12
Posts: 6

Re: New Blocks

kevin_karplus wrote:

The random number block can generate non-integer numbers, just make sure that one of the two limits (min or max) is non-integer.  For example, 0 and 0.9999999 will give you numbers between 0 and (slightly less than) 1.

I tried your idea but I only got numbers like .1, .3, .7, etc.  How can I get numbers like .163572?


When you use a Postit Note, you'll always remember.
Now, please always remember my projects.  Watch'em all, comment, press Loveit and make them your favorite. 
Next time you use a Postit Note, think of me.

Offline

 

#20 2008-01-14 20:17:20

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: New Blocks

You probably are getting numbers like .163572 but the variables will only display numbers to one digit to the right of the decimal point.  To check and see if you are getting more digits after the decimal, multiply the numbers by 10000 (or more, or less, depending on how many places you want) and show those in a variable.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#21 2008-01-15 07:11:14

Post_it_note
Scratcher
Registered: 2008-01-12
Posts: 6

Re: New Blocks

You're right!  Thanks a lot.  Now I guess we don't need any new blocks.  I will definitely use your advice.


When you use a Postit Note, you'll always remember.
Now, please always remember my projects.  Watch'em all, comment, press Loveit and make them your favorite. 
Next time you use a Postit Note, think of me.

Offline

 

#22 2008-01-15 07:28:38

george_w_bush
Scratcher
Registered: 2008-01-11
Posts: 3

Re: New Blocks

You know the "if touching edge?" Why have right edge, left edge, top edge, bottom edge?  Then  The sprite could differentiate between them.


There are two types of people:
Those who hate me...
and those who haven't heard about me, yet.
And I am George Bush!

Offline

 

#23 2008-01-15 17:20:51

girlgirl
Scratcher
Registered: 2008-01-15
Posts: 1

Re: New Blocks

Wouldn't it be a good idea to let users delete their accounts if they wanted to?

I guess it isn't for this topic.

Last edited by girlgirl (2008-01-15 17:22:39)

Offline

 

#24 2008-01-18 15:03:57

penguinpenguin
Scratcher
Registered: 2007-09-17
Posts: 12

Re: New Blocks

I like the idea of stretching.

Offline

 

#25 2008-01-18 15:32:06

Bluekingice
Scratcher
Registered: 2007-12-25
Posts: 86

Re: New Blocks

I think there should be something like:

(rotate for)__(seconds)

and

(play)_(seconds of sound_[sound]


http://a2.cdn.gaiaonline.com/gaia/members/ava/28/c1/15af04d1c3c128_flip.png?
My GAIA Online avatar.

Offline

 

Board footer