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

#26 2008-07-20 07:50:08

chao_chaos
Scratcher
Registered: 2008-07-19
Posts: 19

Re: In Scratch What is "pen" and what do you use it for?

ok

Offline

 

#27 2008-07-24 08:56:50

kirby_loves_muse
Scratcher
Registered: 2008-07-24
Posts: 7

Re: In Scratch What is "pen" and what do you use it for?

(link to fourms) dont work just paste the shortcut ike http://scratch.mit.edu/forums/viewforum.php?id=6

Offline

 

#28 2008-09-26 03:40:06

ashwinsm
Scratcher
Registered: 2008-03-13
Posts: 46

Re: In Scratch What is "pen" and what do you use it for?

Well the pen functions are used for making a sprite do the functions of a pen. Check outmy project LOGO to understand it .


Maths has the basics for everything. hmm

Offline

 

#29 2008-12-27 00:52:27

techy
Scratcher
Registered: 2008-12-17
Posts: 100+

Re: In Scratch What is "pen" and what do you use it for?

basically its made so you can draw in your game...


Guppy Inc. making projects famous!
http://web-geeks.com/techy.gifhttp://web-geeks.com/grid.gifhttp://web-geeks.com/challenge.gif

Offline

 

#30 2009-01-30 15:26:51

Valmassoi
Scratcher
Registered: 2009-01-21
Posts: 41

Re: In Scratch What is "pen" and what do you use it for?

yeah, all the [blocks] <pen up> [/blocks] used for is to draw things or for other techiques in scratch.


http://i132.photobucket.com/albums/q13/jcv1235/Vsig.jpg Check My Games Out, You Could Never Beat Them. http://scratch.mit.edu/users/Valmassoi

Offline

 

#31 2009-02-04 15:25:17

paramji56
Scratcher
Registered: 2009-02-04
Posts: 4

Re: In Scratch What is "pen" and what do you use it for?

it lets you create programs that draw

Offline

 

#32 2009-03-31 07:16:28

Rolers_sonic_tails
Scratcher
Registered: 2008-07-19
Posts: 87

Re: In Scratch What is "pen" and what do you use it for?

It's a piece of script which is about drawing


http://planetsmilies.net/cool-smiley-8942.gif
cool! click the color-changing people to go to where i found it!

Offline

 

#33 2009-03-31 07:18:17

Rolers_sonic_tails
Scratcher
Registered: 2008-07-19
Posts: 87

Re: In Scratch What is "pen" and what do you use it for?

Ahem chao_chaos is my other account and so is Kirby_loves_muse


http://planetsmilies.net/cool-smiley-8942.gif
cool! click the color-changing people to go to where i found it!

Offline

 

#34 2009-04-16 12:44:00

DsGameMaker
Scratcher
Registered: 2009-04-14
Posts: 89

Re: In Scratch What is "pen" and what do you use it for?

The pen allows sprites to "draw" on the Stage. Each sprite can control whether or not its pen is leaving marks on the stage using the "pen up" or "pen down" commands. Also controllable are the pen size, hue, and brightness (as well as a specific color). Finally, "stamp" will make a mark of the sprite on the stage, like a stamp. This was one of the last functions I familiarized myself with in Scratch, but also one of my favorite. Here are some notable projects featuring the pen tool, and some of mine  roll .

Paddle2See's Son Of String: God only knows where Paddle2See gets his inspiration, but the world is a better place for it. This project showcases Scratch's ability to redraw lines somewhat rapidly.

Jens' Clones: The first time I used the stamp tool, I could have sworn I had found a way to dynamically duplicate sprites. Jens makes good use of the stamp function in a similar way here.

Cyclone103's Quick Draw: Example of a technique where the pen continually draws and erases lines between moving points to create the illusion that the lines are moving.

Canthair's Full Raytracer: don't even try to figure this one out. I'm pretty sure that Canthiar is a robot; but is he a good robot or a Microsoft robot?

AddZero's Random 3D Sculpture: Another QuickDraw project, only with a lot of scary math.

S65's Ultra-Fast Raycaster: Draws a room really, really fast with some somewhat annoying music. Gotta love this one!

Chalkmarrow's Bamboo: A nice change from all the evil math in the preceeding projects. Fun to watch, too!

relyt12101's Paint Scratch Pro: Shows off basic drawing techniques.

Paddle2See's Fuzzy Paint: A very fuzzy, artistic paint program, in contrast with his Tech Paint, which is more precise and mathmatical.

My Orbit Draw: Ok, maybe not so famous, but it's fun to play with!

Offline

 

#35 2009-05-07 13:37:03

pokemon_master12
Scratcher
Registered: 2008-09-26
Posts: 100+

Re: In Scratch What is "pen" and what do you use it for?

A pen is so that you can draw on the Stage without having to make complicated scripts. Simple really! Great topic for new users though.  smile


My Dragon Egg! http://dragcave.net/image/5YUA.gif
Visit my blog: http://freyasworld.wordpress.com/

Offline

 

#36 2009-05-13 13:46:41

justbanana
Scratcher
Registered: 2009-05-06
Posts: 16

Re: In Scratch What is "pen" and what do you use it for?

For more advanced projects, you use the pen for most of the graphics, like in bionic battle. Check out my pen tank to see what I mean, the only sprite is actually a 3x3 dot.

Offline

 

#37 2009-05-25 20:45:14

Tantusar
Scratcher
Registered: 2009-05-25
Posts: 1

Re: In Scratch What is "pen" and what do you use it for?

How do you use the pen?

Offline

 

#38 2009-05-25 21:06:18

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

Re: In Scratch What is "pen" and what do you use it for?

Tantusar wrote:

How do you use the pen?

There's a "pen" mode available with each sprite in a project.  When you turn on the sprite's pen with the Pen Down block, the sprite will leave a line behind it whereever it goes.  You can turn the pen off by using the Pen Up block.  Finally the Clear block will erase the pen lines of all sprites.


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

Offline

 

#39 2009-05-29 23:36:31

Rivendain
Scratcher
Registered: 2009-04-08
Posts: 9

Re: In Scratch What is "pen" and what do you use it for?

I made a very basic paint palette on one of my projects and when you click on the color it is supposed to change the pen color but it doesn't work! Help! Please.  yikes

Offline

 

#40 2009-05-29 23:48:05

DawnLight
Scratcher
Registered: 2009-04-25
Posts: 500+

Re: In Scratch What is "pen" and what do you use it for?

Rivendain wrote:

I made a very basic paint palette on one of my projects and when you click on the color it is supposed to change the pen color but it doesn't work! Help! Please.  yikes

Maybe you should do this:
<forever if><mouse down?>
<set pen color to( What ever the sprite pallete is.
Hope that helps! big_smile

Offline

 

#41 2009-05-30 00:29:04

Rivendain
Scratcher
Registered: 2009-04-08
Posts: 9

Re: In Scratch What is "pen" and what do you use it for?

Um. What do you mean? I can't read the writing underneath the blocks!  yikes

Last edited by Rivendain (2009-05-30 00:30:20)

Offline

 

#42 2009-05-30 00:30:37

DawnLight
Scratcher
Registered: 2009-04-25
Posts: 500+

Re: In Scratch What is "pen" and what do you use it for?

Rivendain wrote:

Um. What do you mean? I am terrible at this!  yikes

I'm sorry it's hard to explain...

Offline

 

#43 2009-05-30 05:45:48

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

Re: In Scratch What is "pen" and what do you use it for?

Rivendain wrote:

I made a very basic paint palette on one of my projects and when you click on the color it is supposed to change the pen color but it doesn't work! Help! Please.  yikes

Okay, this is just a guess, but I have seen a LOT of paint projects and I suspect the problem is that you have a sprite (the painting sprite) that you have set to track the mouse position that you are using to make your paint marks.  Now, when you try to click on another sprite (the color-selection sprite), you are actually clicking on your painting sprite so the color-selection sprite never sees the click. 

Common solutions are as follows:

1. Make a small hole in the center of your painting sprite....that way when you click, you will actually be clicking in the hole and will click on the color-selection sprite below the painting sprite.

2. Offset the center of rotation of the painting sprite so that it actually lies outside the borders of the sprite.  That way, the painting sprite will track beside the mouse but not on the mouse so that mouse clicks will not land on the painting sprite.

3. Restrict the motion of the painting sprite so that it does not follow the mouse into the area where the color-selection sprites are located.  You can do this by putting some IF blocks in your Forever loop that sets up the mouse tracking.

I have a gallery with a lot of different paint projects if you want to peek and see how other people have done it

http://scratch.mit.edu/galleries/view/17444


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

Offline

 

#44 2009-07-03 06:23:26

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

Re: In Scratch What is "pen" and what do you use it for?

The only way I know of to make ragdolls is to use pens to connect points. There is no other way that It will work. Search ragdoll and click on a project you find. When you look at the scripts, you'll see pen is the most important part. That's 1 use for pen. Another is to draw a health bar by drawing the lines. You can also use pen for sprite duplication. I always mess up with advanced duplication so I can't help with that.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#45 2009-07-05 07:20:43

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: In Scratch What is "pen" and what do you use it for?

AlanProjects wrote:

Hi! Just wondering What is "pen" and what do you use it for? Could anybody give a demonstration?

Well, I'm sure you are already acquainted with the motion section. Simplified, the pen just tracks where the sprite goes.

You then have a number of other things you can do with it, like size, colour, etc.

Here, it shows how the pen can be used to graph a mathematical formula:

Here is the script:
http://streak.t35.com/internal/Script1.bmp

The result:
http://streak.t35.com/internal/exmp1.bmp

And an explanation:
1. The script starts when the space is pressed by the user.
2. The Stage is cleared of all penmarks.
3. The variable 'variable' is set to -100.
4. The variable 'out of bounds' is set to 0.
5. The pen is put down.
6. The pen colour is set to #FFFF00 (yellow).
7. 'Variable' is changed by 1.
8. The sprite sets its X position to variable. (on the first run, that is -99).
9. The sprite sets its Y position based on the formula Y=10*sin(Variable2/10).
10. Whether the sprite is touching the edge is evaluated.
11. If the above returns TRUE, 'out of bounds' is changed by 1.
12. Steps 7 through 11 are repeated an additional 199 times.
(Note that the pen is always down, so the sprites travel across the 200 pixels is recorded in the above graph)
13. Whether the variable 'out of bounds' is greater that 0 is evaluated.
14. If the above returns TRUE, a low 'C' note is played.
15. If the above returns FALSE, middle C is played.
16. The script then automatically stops.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#46 2009-07-08 07:55:15

knuxrules
Scratcher
Registered: 2009-07-07
Posts: 12

Re: In Scratch What is "pen" and what do you use it for?

I don't really know much about the pen tool.

All I know is that <clear> clears the screen.


I am weird. Why?
I like being smacked

Offline

 

#47 2009-07-09 14:40:31

real-pokemon
Scratcher
Registered: 2009-02-21
Posts: 100+

Re: In Scratch What is "pen" and what do you use it for?

to draw lines  smile


http://scratch.mit.edu/static/icons/buddy/240416_med.png?t=2009-04-14+18%3A35%3A52 http://1.bp.blogspot.com/_655pxnK-l3s/STtTzji19oI/AAAAAAAAABE/prr9X3jKa9Y/S226/Jigglypuff.jpg

Offline

 

#48 2009-07-09 14:41:51

real-pokemon
Scratcher
Registered: 2009-02-21
Posts: 100+

Re: In Scratch What is "pen" and what do you use it for?

Cool Lines  yikes


http://scratch.mit.edu/static/icons/buddy/240416_med.png?t=2009-04-14+18%3A35%3A52 http://1.bp.blogspot.com/_655pxnK-l3s/STtTzji19oI/AAAAAAAAABE/prr9X3jKa9Y/S226/Jigglypuff.jpg

Offline

 

#49 2009-07-20 18:27:46

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

Re: In Scratch What is "pen" and what do you use it for?

Here's a project using repeated drawing and clearing of the pen: http://scratch.mit.edu/projects/The-Whiz/613599

Offline

 

#50 2009-08-02 16:37:33

aweman
Scratcher
Registered: 2008-06-22
Posts: 100+

Re: In Scratch What is "pen" and what do you use it for?

Bluestribute wrote:

Blipp25 wrote:

o dang it i screwed it up. any way how do you make a script to drw with the mouse?

Yes. In Scratch's pre-made sprites, go under things, than click drawing_pencil. Than edit it costume to a single dot, and voila, you have it!

You don't even need to edit it. My project "Rainbow Writing" uses the pencil itself.

Offline

 

Board footer