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

whenclickedpendownmovemovingalonganddrawingastraightlinestepsturnchangedirectiondegreesglidestill'drawing'secstox:arandomplacey:arandomplace

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.
whenclickedhide
To use the pen, the code is often along the lines of this…
clearsetpencolortosetpensizeto2setcounterto0gotox:100*sinofcountery:100*cosofcounterpendownrepeat100changecounterby27gotox:100*sinofcountery:100*cosofcounterpenup
This should draw an insta-scribble on the screen.
Coley1234
Scratcher
7 posts

How do you make the pen draw

You can do
whenclickedpendownglideSecssecstox:?y:?penup
Hope this helped!
EYzhou
Scratcher
16 posts

How do you make the pen draw

ecarmody wrote:

??????????????
whenclickedpendownsetpencolortoforeverglidepickrandompickrandom0to10to10secstox:pickrandom0to10y:2turn15degrees

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

penup=drawingthenhowdoyoumakeitsothepencanonlydrawinaspecificareapenup=notdrawingthepenisatthesprite.usebasicmotionblocks.

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


whenclickedpendownscratchblocks/scratchblockssetpencolortoscratchblockssetpensizetoscratchblocks)/scratchblocksmovescratchblocks)stepswhenkeypressedglidesecstox:0y: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
clearforevergoto<mouse pointer>ifmousedown?thenpendownelsepenup
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