Discuss Scratch

ecarmody
Scratcher
13 posts

How do you make the pen draw

??????????????
tawnycatz
Scratcher
54 posts

How do you make the pen draw

pen down script and then somehow make the sprite move, so the pen moves, and it draws
ecarmody
Scratcher
13 posts

How do you make the pen draw

then how do you make it so the pen can only draw in a specific area
GalleonCloak6764
Scratcher
100+ posts

How do you make the pen draw

when green flag clicked
pen down
move (moving along and drawing a straight line) steps
turn ccw (change direction) degrees
glide (still 'drawing') secs to x: (a random place) y: (a random place)

See above. Pen down means start drawing and pen up means stop drawing. The motion blocks move the sprite the pen is on around, and therefore the pen around.
Hope this helped!
Note: the red and orange thingies are just automatically put on when I was using the scratch blocks - they aren't needed to draw.

Last edited by GalleonCloak6764 (July 6, 2015 16:20:13)

deck26
Scratcher
1000+ posts

How do you make the pen draw

The pen can only draw on the background so if you have a sprite or sprites representing the other areas the drawing is automatically restricted.
hugmyster
Scratcher
100+ posts

How do you make the pen draw

I use the pen frequently and to do so, set the icon as a crosshair, which is immediately set to hidden on starting as there is no need to view it.
when green flag clicked
hide
To use the pen, the code is often along the lines of this…
clear
set pen color to [#00ffff]
set pen size to (2)
set [counter] to [0]
go to x: ((100) * ([sin] of (counter))) y: ((100) * ([cos] of (counter)))
pen down
repeat (100)
change [counter] by (27)
go to x: ((100) * ([sin] of (counter))) y: ((100) * ([cos] of (counter)))
end
pen up
This should draw an insta-scribble on the screen.
Coley1234
Scratcher
7 posts

How do you make the pen draw

You can do
when green flag clicked
pen down
glide (Secs) secs to x: (?) y: (?)
pen up
Hope this helped!
EYzhou
Scratcher
16 posts

How do you make the pen draw

ecarmody wrote:

??????????????
when green flag clicked
pen down
set pen color to [#ff0088]
forever

glide (pick random (pick random (0) to (10)) to (10)) secs to x: ((pick random (0)) to (10)) y: (2)
end
turn ccw (15) degrees

Last edited by EYzhou (May 13, 2016 00:27:39)

HotCocoa76
Scratcher
1 post

How do you make the pen draw

If I were making a line, would there be a way to make the line that was drawn fall to the bottom of the screen/ move?
laithrocks
Scratcher
100+ posts

How do you make the pen draw

pen up= drawing then how do you make it so the pen can only  draw in a specific area
pen up=not drawing
the pen is at the sprite. use basic motion blocks.

Last edited by laithrocks (May 13, 2016 14:54:18)

superkawiigirl500
New Scratcher
1 post

How do you make the pen draw

i did it something like this…..






forever
set pen color to
pen up
pen down
end
deck26
Scratcher
1000+ posts

How do you make the pen draw

superkawiigirl500 wrote:

i did it something like this…..






forever
set pen color to
pen up
pen down
end
This topic is old so please don't necropost.
kingkrafterz
Scratcher
2 posts

How do you make the pen draw



when green flag clicked
pen down
set pen color to
forever

glide (pick random (pick random (0) to (10)) to (10)) secs to x: ((pick random (0)) to (10)) y: (2)
end
turn ccw (15) degrees


when green flag clicked
pen down[scratchblocks]
[/scratchblocks]
set pen color to [#6062de]
[scratchblocks]
set pen size to ([scratchblocks]
)[/scratchblocks]
move ([scratchblocks]
) steps
when [ v] key pressed
glide () secs to x: (0) y: (0)
[/scratchblocks]
[/scratchblocks]

Last edited by kingkrafterz (March 4, 2019 22:20:57)

MollyandMilodog
Scratcher
100+ posts

How do you make the pen draw

https://scratch.mit.edu/projects/312521516
Look inside

Last edited by MollyandMilodog (June 8, 2019 03:00:30)

Gators32
New Scratcher
1 post

How do you make the pen draw

I dont have pen up or pen down ive checked the green section, the purple section, everything!
deck26
Scratcher
1000+ posts

How do you make the pen draw

Gators32 wrote:

I dont have pen up or pen down ive checked the green section, the purple section, everything!
The pen blocks are now in an extension which you load from the bottom left of the blocks section.
af2098
Scratcher
2 posts

How do you make the pen draw

OOF. I am bad at scratch and i need something WAY easy. Can someone show me an example of one of them?
af2098
Scratcher
2 posts

How do you make the pen draw

Oh I think I have one now. I don't know if this works tho

when green flag clicked
clear
forever
go to [<mouse pointer> v]
if <mouse down?> then
pen down
else
pen up
end
end
deck26
Scratcher
1000+ posts

How do you make the pen draw

af2098 wrote:

OOF. I am bad at scratch and i need something WAY easy. Can someone show me an example of one of them?
Please don't necropost - this topic is old.
gachawolf6453
New Scratcher
1 post

How do you make the pen draw

i pressed the left key of my mouse and hacked to do it-pressed in spect-

Powered by DjangoBB