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

#1 2009-10-17 03:56:32

Ralphjos
Scratcher
Registered: 2009-10-10
Posts: 100+

"Ralph asks question."

Hello. As the title says, "Ralph asks question." What question? Well, I'm just wondering what these are.

http://i33.tinypic.com/23j47yv.jpg


What do they do? How can I use them to my advantage? Give me an example using one that can probably be used in a game.

    Regards,
       Ralphjos

Last edited by Ralphjos (2009-10-17 04:02:43)


http://i33.tinypic.com/2dt3j9j.gif

Offline

 

#2 2009-10-17 04:54:41

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: "Ralph asks question."

I'm not an expert on the motor blocks... what I suggest is right-clicking on them and selecting "help".

For the Set Single Stepping, it sets how fast Scratch runs your project. The faster you set it, the faster it goes - but it gets stickier.
For the Start Single Stepping, it starts it.

For the ([slider]sensor value), I don't know. Use the help feature.
The same applies to the <sensor [button pressed]?>

(join[hello][world]) joins text together, which can be used in text-related projects.
(letter (1) of [world] identifies the specified letter of the item.
(length of [world]) tells you the length of the item.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2009-10-17 09:18:25

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: "Ralph asks question."

The motor blocks are for controlling the Lego WeDo software.
([slider] sensor value) and <sensor [button pressed]> have to do with sensor boards (there's a whole section in the forums).

Offline

 

#4 2009-10-17 12:21:11

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: "Ralph asks question."

Right click or ctrl click to get help in Scratch as well.

Single stepping in helpful for looking for glitches in a project, if you do "flash blocks" it will show which blocks it's going through at the moment.


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#5 2009-10-17 13:09:32

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: "Ralph asks question."

Like the (join (hello )(world)) block could be used like this:
[when flag clicked]
[ask [What's you're name?]]
[say (join (Hello, )(answer))]

Offline

 

#6 2009-10-17 19:48:37

Ralphjos
Scratcher
Registered: 2009-10-10
Posts: 100+

Re: "Ralph asks question."

The-Whiz wrote:

The motor blocks are for controlling the Lego WeDo software...

What is Lego WeDo? Where do I get it? Does it cost money? If so, how much?

    Regards,
       Ralphj
os


http://i33.tinypic.com/2dt3j9j.gif

Offline

 

#7 2009-10-30 03:35:16

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: "Ralph asks question."

Not many people actually gave you examples on how these can be used, so I'll do that:

Code:

When green flag pressed
Ask 'What's your name?'
Say 'say (join (Hello, )(answer))'

It's obvious what that does.

Code:

When green flag pressed
Ask 'What's your name?'
Set counter to (0)
Repeat (length of (answer))
Change counter by (1)
Add (letter (counter) of (answer) to list (any old list)

That adds each letter individually to a list.

Code:

When green flag pressed
Forever if <sensor button pressed>
Say 'The button is being pressed'

Tells you whether the button on the picoboard is being pressed.

And I really can't be bothered to do any more. Sorry.


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#8 2009-10-30 04:08:29

Ralphjos
Scratcher
Registered: 2009-10-10
Posts: 100+

Re: "Ralph asks question."

WeirdF wrote:

Not many people actually gave you examples on how these can be used, so I'll do that:


It's obvious what that does


That adds each letter individually to a list


Tells you whether the button on the picoboard is being pressed.

And I really can't be bothered to do any more. Sorry.

Thank you for some of the examples, WF. (Ya don't mind if I call ya that right?)

    Regards,
        Ralphj
os

Last edited by Ralphjos (2009-10-30 04:09:09)


http://i33.tinypic.com/2dt3j9j.gif

Offline

 

#9 2009-10-30 04:39:08

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: "Ralph asks question."

Ralphjos wrote:

Thank you for some of the examples, WF. (Ya don't mind if I call ya that right?)

No, that's absolutely fine.


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#10 2009-10-30 04:49:01

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

Re: "Ralph asks question."

Ralphjos wrote:

The-Whiz wrote:

The motor blocks are for controlling the Lego WeDo software...

What is Lego WeDo? Where do I get it? Does it cost money? If so, how much?

    Regards,
       Ralphj
os

Lego WeDo is a tethered robotics system.  It does cost money.  You can learn more about it from this link

http://www.legoeducation.us/store/detail.aspx?ID=1573&bhcp=1

My understanding is that you don't have to buy software for it, if you intend to run it from Scratch.


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

Offline

 

#11 2009-11-09 01:46:22

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: "Ralph asks question."

Yo Ralphjos! Hope you are well. I teach classes using PicoBlocks (a version of Scratch) and PicoCrickets which is basically the Lego WeDo system paired with the application.

That system comes with many project ideas. I made a remote control (via wires) car with a horn and headlights. We also made door alarms, musical Playdoh, moving sculptures, moving windmills, a motor driven optical Illusion, a light sensor that made music, a starting light for our lego race car track, all kinds of stuff! In general terms, I love the motor cause you can take your programing off the screen and make stuff happen in the real world. Just like Scratch, the possibilities are almost endless.

For example, you could make program that could read someone knocking on a locked door and if they used the right secret knock, unlock it (although that would be tricky.) I used to fish a lot and often wanted to get up right at dawn. You could make an alarm that ran off a light sensor attached to a window and then turned on a radio when the sun began to come up (unless clouds made you sleep late heh.) Because I teach with this stuff, I have access to a ton of motors, brains, etc. Some day, I am going to combine several sets and make a walking, talking robot. It will have to be simplistic but, well, some things you just have to do because they are cool, you know? PS.. I am not trying to talk you into buying anything. I don't work for Pico or Lego, lol. But it is a neat system that most people seem to have barely even begun to put to good/cool usage, from what I've found. Peace.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer