Discuss Scratch

superclass43
Scratcher
500+ posts

Useful ways to start using the pen extension | A beginners guide

Useful Ways To Start Using the pen Scratch Extension | A beginners guide

This guide will teach you some simple but useful ways to use the scratch extensions in your project

The Pen Extension

Adding the pen extension:
1.
Press this button (which is under the block selection tab):


2.
There should be lots of choices of which extension to pick and the Pen extension should be there to click

A simple square:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice] // You can change this colour
pen down
point in direction (90 v)
clear
repeat (4)
move (Amount) steps // This amount of steps changes how big the square is going to be
turn ccw (90) degrees // The first time this code goes around it will just we one line. It will turn 90 degrees each time and create a square
end

A simple circle:
when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [Your choice]
pen down
point in direction (90 v)
clear
repeat (30)
move (amount) steps // This amount changes how big the circle is going to be and how bumpy it is going to be
turn ccw (15) degrees

end

A simple rectangle:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice]
pen down
point in direction (90 v)
clear
repeat (2)
turn ccw (90) degrees
move (Bigger amount) steps // The bigger amount will do the longer side of the rectangle
turn ccw (90) degrees // Then it will turn round to do the next side
move (Smaller amount) steps // The smaller amount will do the shorter side of the rectangle
end
Drawing pad:

when green flag clicked
forever
go to [Mouse pointer v]
if <mouse down?> then
pen down


else
pen up

end
end
You can also add an optional thing to the code above which is a slider and changes the colour of the pen:

when green flag clicked
forever
set pen color to (pen colour)
end
Pen blocks in 3.0 (current version of scratch)






Make sure you add a hat block on and then your all set!

Advancing to ‘My blocks’:

Defining blocks can be a useful and quicker way to make projects. For example:

define circle
set pen color to [your choice]
pen down
go to x: (Your choice) y: (Your choice)
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees


end

An advanced way to do this would be:

define Circle from x: (x) y: (y)
set pen color to [Your choice]
pen down
go to x: (x) y: (y) // this means that it will go to the x and y that you put in the block when your using it
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees

end

Last edited by superclass43 (July 31, 2020 09:54:55)

Raihan142857
Scratcher
1000+ posts

Useful ways to start using the pen extension | A beginners guide

Some of the scratch blocks appear weirdly… awesome tutorial though!
superclass43
Scratcher
500+ posts

Useful ways to start using the pen extension | A beginners guide

Raihan142857 wrote:

Some of the scratch blocks appear weirdly… awesome tutorial though!
Thank you!
hedgehog_blue
Scratcher
1000+ posts

Useful ways to start using the pen extension | A beginners guide

It doesn't seem like Developing Scratch Extensions is the correct forum for this topic. We mainly use this forum to discuss creating custom extensions with things like scratchx, not using built-in ones like pen.

I also want to provide my thoughts about the guide:
It looks like this took a lot of time and effort, but it feels like you just give the code, rather than explaining what it is doing and introducing the main concepts of how it works first. I also would suggest mainly rearranging the post to show how to add the extension first, then introduce the blocks and what they do, before getting into examples.
ponygirl57
Scratcher
6 posts

Useful ways to start using the pen extension | A beginners guide

Hi I just wanted to say I love scratch
Coding_Wizard0316
Scratcher
34 posts

Useful ways to start using the pen extension | A beginners guide

Tha

superclass43 wrote:

Useful Ways To Start Using the pen Scratch Extension | A beginners guide

This guide will teach you some simple but useful ways to use the scratch extensions in your project

The Pen Extension

A simple square:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice] // You can change this colour
pen down
point in direction (90 v)
clear
repeat (4)
move (Amount) steps // This amount of steps changes how big the square is going to be
turn ccw (90) degrees
end

A simple circle:
when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [Your choice]
pen down
point in direction (90 v)
clear
repeat (30)
move (amount) steps // This amount changes how big the circle is going to be and how bumpy it is going to be
turn ccw (15) degrees

end

A simple rectangle:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice]
pen down
point in direction (90 v)
clear
repeat (2)
turn ccw (90) degrees
move (Bigger amount) steps
turn ccw (90) degrees
move (Smaller amount) steps
end
Drawing pad:

when green flag clicked
forever
go to [Mouse pointer v]
if <mouse down?> then
pen down


else
pen up

end
end
You can also add an optional thing to the code above which is a slider and changes the colour of the pen:

when green flag clicked
forever
set pen color to (pen colour)
end
Pen blocks in 3.0 (current version of scratch)



Adding the pen extension:
1.Press this button (which is under the block selection tab):


2.There should be lots of choices of which extension to pick and the Pen extension should be there to click



Make sure you add a hat block on and then your all set!

Advancing to ‘My blocks’:

Defining blocks can be a useful and quicker way to make projects. For example:

define circle
set pen color to [your choice]
pen down
go to x: (Your choice) y: (Your choice)
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees


end

An advanced way to do this would be:

define Circle from x: (x) y: (y)
set pen color to [Your choice]
pen down
go to x: (x) y: (y)
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees

end
Thank you! I've always wanted to learn about the pen! I tried using it but it only turned into a disaster..
superclass43
Scratcher
500+ posts

Useful ways to start using the pen extension | A beginners guide

Coding_Wizard0316 wrote:

Tha

superclass43 wrote:

Useful Ways To Start Using the pen Scratch Extension | A beginners guide

This guide will teach you some simple but useful ways to use the scratch extensions in your project

The Pen Extension

A simple square:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice] // You can change this colour
pen down
point in direction (90 v)
clear
repeat (4)
move (Amount) steps // This amount of steps changes how big the square is going to be
turn ccw (90) degrees
end

A simple circle:
when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [Your choice]
pen down
point in direction (90 v)
clear
repeat (30)
move (amount) steps // This amount changes how big the circle is going to be and how bumpy it is going to be
turn ccw (15) degrees

end

A simple rectangle:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice]
pen down
point in direction (90 v)
clear
repeat (2)
turn ccw (90) degrees
move (Bigger amount) steps
turn ccw (90) degrees
move (Smaller amount) steps
end
Drawing pad:

when green flag clicked
forever
go to [Mouse pointer v]
if <mouse down?> then
pen down


else
pen up

end
end
You can also add an optional thing to the code above which is a slider and changes the colour of the pen:

when green flag clicked
forever
set pen color to (pen colour)
end
Pen blocks in 3.0 (current version of scratch)



Adding the pen extension:
1.Press this button (which is under the block selection tab):


2.There should be lots of choices of which extension to pick and the Pen extension should be there to click



Make sure you add a hat block on and then your all set!

Advancing to ‘My blocks’:

Defining blocks can be a useful and quicker way to make projects. For example:

define circle
set pen color to [your choice]
pen down
go to x: (Your choice) y: (Your choice)
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees


end

An advanced way to do this would be:

define Circle from x: (x) y: (y)
set pen color to [Your choice]
pen down
go to x: (x) y: (y)
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees

end
Thank you! I've always wanted to learn about the pen! I tried using it but it only turned into a disaster..
Do you mean this code turned out in a disaster because if it did I know a few reasons why it might’ve
superclass43
Scratcher
500+ posts

Useful ways to start using the pen extension | A beginners guide

hedgehog_blue wrote:

It doesn't seem like Developing Scratch Extensions is the correct forum for this topic. We mainly use this forum to discuss creating custom extensions with things like scratchx, not using built-in ones like pen.

I also want to provide my thoughts about the guide:
It looks like this took a lot of time and effort, but it feels like you just give the code, rather than explaining what it is doing and introducing the main concepts of how it works first. I also would suggest mainly rearranging the post to show how to add the extension first, then introduce the blocks and what they do, before getting into examples.
Ahh, I’ll add things saying what it does soon. Thanks for the feedback!
Artemislol
Scratcher
31 posts

Useful ways to start using the pen extension | A beginners guide

superclass43 wrote:

Useful Ways To Start Using the pen Scratch Extension | A beginners guide

This guide will teach you some simple but useful ways to use the scratch extensions in your project

The Pen Extension

Adding the pen extension:
1.
Press this button (which is under the block selection tab):


2.
There should be lots of choices of which extension to pick and the Pen extension should be there to click

A simple square:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice] // You can change this colour
pen down
point in direction (90 v)
clear
repeat (4)
move (Amount) steps // This amount of steps changes how big the square is going to be
turn ccw (90) degrees // The first time this code goes around it will just we one line. It will turn 90 degrees each time and create a square
end

A simple circle:
when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [Your choice]
pen down
point in direction (90 v)
clear
repeat (30)
move (amount) steps // This amount changes how big the circle is going to be and how bumpy it is going to be
turn ccw (15) degrees

end

A simple rectangle:

when green flag clicked
go to x: (Your choice) y: (Your choice)
set pen color to [your choice]
pen down
point in direction (90 v)
clear
repeat (2)
turn ccw (90) degrees
move (Bigger amount) steps // The bigger amount will do the longer side of the rectangle
turn ccw (90) degrees // Then it will turn round to do the next side
move (Smaller amount) steps // The smaller amount will do the shorter side of the rectangle
end
Drawing pad:

when green flag clicked
forever
go to [Mouse pointer v]
if <mouse down?> then
pen down


else
pen up

end
end
You can also add an optional thing to the code above which is a slider and changes the colour of the pen:

when green flag clicked
forever
set pen color to (pen colour)
end
Pen blocks in 3.0 (current version of scratch)






Make sure you add a hat block on and then your all set!

Advancing to ‘My blocks’:

Defining blocks can be a useful and quicker way to make projects. For example:

define circle
set pen color to [your choice]
pen down
go to x: (Your choice) y: (Your choice)
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees


end

An advanced way to do this would be:

define Circle from x: (x) y: (y)
set pen color to [Your choice]
pen down
go to x: (x) y: (y) // this means that it will go to the x and y that you put in the block when your using it
point in direction (90 v)
clear
repeat (30)
move (Your choice) steps
turn ccw (15) degrees

end


Interesting but could you go slightly more in depth?
IcecreambutLame
Scratcher
6 posts

Useful ways to start using the pen extension | A beginners guide

wow
Barthdry
Scratcher
500+ posts

Useful ways to start using the pen extension | A beginners guide

Please post this in help with scripts this forum is for Devoloping your own scratch extension not for scratch extensions already there in 3.0
CATMEOWMEOWEOW
Scratcher
1 post

Useful ways to start using the pen extension | A beginners guide

ponygirl57 wrote:

Hi I just wanted to say I love scratch
SO DO I

Powered by DjangoBB